Skip to content

Commit 99ac744

Browse files
committed
ruffed
1 parent 2165fd4 commit 99ac744

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

services/invitations/tests/unit/test_invitations.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
# pylint: disable=too-many-arguments
55

66
import binascii
7-
from datetime import datetime, timezone
8-
from typing import Counter
7+
from collections import Counter
8+
from datetime import UTC, datetime
99
from urllib import parse
1010

1111
import cryptography.fernet
@@ -40,7 +40,7 @@ def test_import_and_export_invitation_alias_by_alias(
4040
):
4141
expected_content = InvitationContent(
4242
**invitation_data.model_dump(),
43-
created=datetime.now(tz=timezone.utc),
43+
created=datetime.now(tz=UTC),
4444
)
4545
raw_data = _ContentWithShortNames.serialize(expected_content)
4646

@@ -53,7 +53,7 @@ def test_export_by_alias_produces_smaller_strings(
5353
):
5454
content = InvitationContent(
5555
**invitation_data.model_dump(),
56-
created=datetime.now(tz=timezone.utc),
56+
created=datetime.now(tz=UTC),
5757
)
5858
raw_data = _ContentWithShortNames.serialize(content)
5959

0 commit comments

Comments
 (0)