Skip to content

Commit

Permalink
Fix ref to UTC timezone object from django 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
macpd committed Aug 26, 2024
1 parent ea5d564 commit 4565a76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ddm/tests/test_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def test_expired_token(self):
expired_token = ProjectAccessToken.objects.create(
project=self.project,
created=timezone.now(),
expiration_date=datetime.datetime(2022, 2, 2, 22, 22).replace(tzinfo=timezone.utc)
expiration_date=datetime.datetime(2022, 2, 2, 22, 22).replace(tzinfo=datetime.timezone.utc)
)
self.assertRaises(
exceptions.AuthenticationFailed,
Expand Down

0 comments on commit 4565a76

Please sign in to comment.