99 PatchOnCommitFest ,
1010)
1111
12+ pytestmark = pytest .mark .django_db
13+
1214
13- @pytest .mark .django_db
1415@freeze_time ("2024-12-05" )
1516def test_inprogress_cf_closes_when_enddate_passed (commitfests , alice ):
1617 """When an in_progress CF's enddate has passed, it should be closed."""
@@ -38,7 +39,6 @@ def test_inprogress_cf_closes_when_enddate_passed(commitfests, alice):
3839 assert patch .current_commitfest ().id == open_cf .id
3940
4041
41- @pytest .mark .django_db
4242@freeze_time ("2025-01-15" )
4343def test_open_cf_becomes_inprogress_when_startdate_reached (commitfests ):
4444 """When an open CF's startdate is reached, it becomes in_progress."""
@@ -59,7 +59,6 @@ def test_open_cf_becomes_inprogress_when_startdate_reached(commitfests):
5959 assert new_open .startdate > open_cf .enddate
6060
6161
62- @pytest .mark .django_db
6362@freeze_time ("2025-02-05" )
6463def test_open_cf_closes_when_enddate_passed (commitfests , alice ):
6564 """When an open CF's enddate has passed (skipping in_progress), it closes."""
@@ -94,7 +93,6 @@ def test_open_cf_closes_when_enddate_passed(commitfests, alice):
9493 assert patch .current_commitfest ().id == new_open .id
9594
9695
97- @pytest .mark .django_db
9896@freeze_time ("2025-01-15" )
9997def test_draft_cf_created_when_missing (commitfests ):
10098 """When no draft CF exists, one should be created."""
@@ -113,7 +111,6 @@ def test_draft_cf_created_when_missing(commitfests):
113111 assert draft_cf .status == CommitFest .STATUS_OPEN
114112
115113
116- @pytest .mark .django_db
117114@freeze_time ("2025-04-05" )
118115def test_draft_cf_closes_when_enddate_passed (commitfests , alice ):
119116 """When a draft CF's enddate has passed, it should be closed."""
@@ -149,7 +146,6 @@ def test_draft_cf_closes_when_enddate_passed(commitfests, alice):
149146 assert patch .current_commitfest ().id == new_draft .id
150147
151148
152- @pytest .mark .django_db
153149@freeze_time ("2024-11-15" )
154150def test_no_changes_when_up_to_date (commitfests ):
155151 """When commitfests are up to date, no changes should be made."""
0 commit comments