Skip to content

Commit

Permalink
format Python
Browse files Browse the repository at this point in the history
  • Loading branch information
waalbert committed Nov 24, 2024
1 parent bc4845a commit 5313e13
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/api/tests/test_guest_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ def test_can_validate_key() -> None:
async def test_get_existing_unexpired_key(mock_mongodb_retrieve_one: AsyncMock) -> None:
"""Test that existing, unexpired guest authorization key can be retrieved."""
iat = datetime(2024, 1, 11)
exp = datetime(2025, 7, 1, tzinfo=timezone.utc) # update expire date for this test to not fail :)
exp = datetime(
2025, 7, 1, tzinfo=timezone.utc
) # update expire date for this test to not fail :)
# this test will fail next year :P
mock_mongodb_retrieve_one.return_value = {
"guest_auth": {"iat": iat, "exp": exp, "key": "some-key"}
Expand Down

0 comments on commit 5313e13

Please sign in to comment.