Skip to content

Commit

Permalink
🐛 add freezegun to pass tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yezz123 committed Jun 19, 2023
1 parent 02b5d9c commit aee12b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ test = [
"itsdangerous == 2.1.2",
"websockets==11.0.3",
"uvicorn==0.22.0",
"uvloop==0.17.0"
"uvloop==0.17.0",
"freezegun==1.2.2"
]
docs = [
"mkdocs >=1.1.2,<2.0.0",
Expand Down
2 changes: 2 additions & 0 deletions tests/internal/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import pytest
import pytz
from dateutil.relativedelta import relativedelta
from freezegun import freeze_time
from pytz import timezone

from authx._internal._utils import (
Expand Down Expand Up @@ -138,6 +139,7 @@ def test_is_yesterday(sample_datetime):
assert is_yesterday(sample_datetime) is False


@freeze_time("2023-05-20 12:00:00")
def test_is_tomorrow(sample_datetime):
assert is_tomorrow(sample_datetime) is False

Expand Down

0 comments on commit aee12b5

Please sign in to comment.