aboutsummaryrefslogtreecommitdiff
path: root/tests/managers/thl/test_contest/test_milestone.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/managers/thl/test_contest/test_milestone.py')
-rw-r--r--tests/managers/thl/test_contest/test_milestone.py16
1 files changed, 11 insertions, 5 deletions
diff --git a/tests/managers/thl/test_contest/test_milestone.py b/tests/managers/thl/test_contest/test_milestone.py
index 7312a64..66c5dc4 100644
--- a/tests/managers/thl/test_contest/test_milestone.py
+++ b/tests/managers/thl/test_contest/test_milestone.py
@@ -1,23 +1,29 @@
-from datetime import datetime, timezone
+from datetime import UTC, datetime, timezone
from generalresearch.models.thl.contest.definitions import (
- ContestStatus,
ContestEndReason,
+ ContestStatus,
)
from generalresearch.models.thl.contest.milestone import (
+ ContestEntryTrigger,
MilestoneContest,
MilestoneContestCreate,
MilestoneUserView,
- ContestEntryTrigger,
)
from generalresearch.models.thl.product import Product
from generalresearch.models.thl.user import User
from test_utils.managers.contest.conftest import (
milestone_contest as contest,
- milestone_contest_in_db as contest_in_db,
+)
+from test_utils.managers.contest.conftest import (
milestone_contest_create as contest_create,
+)
+from test_utils.managers.contest.conftest import (
milestone_contest_factory as contest_factory,
)
+from test_utils.managers.contest.conftest import (
+ milestone_contest_in_db as contest_in_db,
+)
class TestMilestoneContest:
@@ -28,7 +34,7 @@ class TestMilestoneContest:
assert not should, msg
# Change so that the contest ends now
- contest.end_condition.ends_at = datetime.now(tz=timezone.utc)
+ contest.end_condition.ends_at = datetime.now(tz=UTC)
should, msg = contest.should_end()
assert should
assert msg == ContestEndReason.ENDS_AT