Skip to content

Commit

Permalink
🐛 fix Time Tests using freezegun & Bump pre-commit from 3.3.2 t…
Browse files Browse the repository at this point in the history
…o `3.3.3` (#469)

⬆ Bump `pre-commit` from 3.3.2 to 3.3.3

🐛 add `freezegun` to pass tests
  • Loading branch information
yezz123 authored Jun 19, 2023
2 parents 84739b0 + aee12b5 commit 23e6112
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ cache = [
"pytz==2023.3",
]
lint = [
"pre-commit==3.3.2",
"pre-commit==3.3.3",
"mypy==1.3.0",
]
test = [
Expand All @@ -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

1 comment on commit 23e6112

@vercel
Copy link

@vercel vercel bot commented on 23e6112 Jun 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

authx – ./

authx-yezz123.vercel.app
authx-psi.vercel.app
authx-git-main-yezz123.vercel.app
authx.yezz.me

Please sign in to comment.