Bump PyJWT to 2.6.0 (#90134)

* Bump PyJWT to 2.6.0

* fix time being frozen too late which makes the access token creation time in the future

* revert zha change

* fix repairs test

* fix ical test
This commit is contained in:
J. Nick Koston 2023-03-22 14:00:47 -10:00 committed by GitHub
parent 03aeaba7ef
commit 99b58f157e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 143 additions and 74 deletions

View file

@ -4,7 +4,6 @@ from datetime import datetime, timedelta
from ipaddress import IPv4Address
from unittest.mock import AsyncMock, Mock, patch
from freezegun import freeze_time
import pytest
import pytz
from pyunifiprotect.data import (
@ -465,7 +464,7 @@ TWO_MONTH_SIMPLE = (
("start", "months"),
[ONE_MONTH_SIMPLE, TWO_MONTH_SIMPLE],
)
@freeze_time("2022-09-15 03:00:00-07:00")
@pytest.mark.freeze_time("2022-09-15 03:00:00-07:00")
async def test_browse_media_time(
hass: HomeAssistant,
ufp: MockUFPFixture,
@ -537,7 +536,7 @@ TWO_MONTH_TIMEZONE = (
("start", "months"),
[ONE_MONTH_TIMEZONE, TWO_MONTH_TIMEZONE],
)
@freeze_time("2022-08-31 21:00:00-07:00")
@pytest.mark.freeze_time("2022-08-31 21:00:00-07:00")
async def test_browse_media_time_timezone(
hass: HomeAssistant,
ufp: MockUFPFixture,
@ -713,7 +712,7 @@ async def test_browse_media_eventthumb(
assert browse.media_class == MediaClass.IMAGE
@freeze_time("2022-09-15 03:00:00-07:00")
@pytest.mark.freeze_time("2022-09-15 03:00:00-07:00")
async def test_browse_media_day(
hass: HomeAssistant, ufp: MockUFPFixture, doorbell: Camera
) -> None: