File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
services/invitations/tests/unit Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 44# pylint: disable=too-many-arguments
55
66import binascii
7- from datetime import datetime , timezone
8- from typing import Counter
7+ from collections import Counter
8+ from datetime import UTC , datetime
99from urllib import parse
1010
1111import 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
You can’t perform that action at this time.
0 commit comments