diff --git a/.github/workflows/testing.yaml b/.github/workflows/testing.yaml index ea51b5b..7f71109 100644 --- a/.github/workflows/testing.yaml +++ b/.github/workflows/testing.yaml @@ -17,7 +17,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [ "3.11", "3.12" ] + python-version: [ "3.9", "3.10", "3.11", "3.12" ] fastapi-version: [ "0.103.2", "0.111.1"] steps: - name: Check out repository diff --git a/.gitignore b/.gitignore index 89e84fb..697a452 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ *.pyc .idea/* +.vscode env/ demo_project/.env .DS_Store diff --git a/fastapi_azure_auth/exceptions.py b/fastapi_azure_auth/exceptions.py index 336cb95..8e778bf 100644 --- a/fastapi_azure_auth/exceptions.py +++ b/fastapi_azure_auth/exceptions.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from fastapi import HTTPException, WebSocketException, status from starlette.requests import HTTPConnection diff --git a/tests/test_user.py b/tests/test_user.py index f91f040..205555f 100644 --- a/tests/test_user.py +++ b/tests/test_user.py @@ -85,7 +85,7 @@ def test_guest_user(claims: Dict[str, str], expected: bool): def get_utc_now_as_unix_timestamp() -> int: - date = datetime.datetime.now(datetime.UTC) + date = datetime.datetime.now(datetime.timezone.utc) return calendar.timegm(date.utctimetuple())