Skip to content

Commit 5fa6e04

Browse files
committed
Simplify more
1 parent a2a9b6a commit 5fa6e04

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

pgcommitfest/commitfest/tests/test_refresh_commitfests.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ def test_inprogress_cf_closes_when_enddate_passed(commitfests, alice):
4343
def test_open_cf_becomes_inprogress_when_startdate_reached(commitfests):
4444
"""When an open CF's startdate is reached, it becomes in_progress."""
4545
open_cf = commitfests["open"]
46-
# Mark in_progress as closed so open_cf becomes the active one
47-
commitfests["in_progress"].status = CommitFest.STATUS_CLOSED
48-
commitfests["in_progress"].save()
4946

5047
CommitFest._refresh_relevant_commitfests(for_update=False)
5148

@@ -63,9 +60,6 @@ def test_open_cf_becomes_inprogress_when_startdate_reached(commitfests):
6360
def test_open_cf_closes_when_enddate_passed(commitfests, alice):
6461
"""When an open CF's enddate has passed (skipping in_progress), it closes."""
6562
open_cf = commitfests["open"]
66-
# Mark in_progress as closed
67-
commitfests["in_progress"].status = CommitFest.STATUS_CLOSED
68-
commitfests["in_progress"].save()
6963

7064
patch = Patch.objects.create(
7165
name="Test Patch",
@@ -96,9 +90,6 @@ def test_open_cf_closes_when_enddate_passed(commitfests, alice):
9690
@freeze_time("2025-01-15")
9791
def test_draft_cf_created_when_missing(commitfests):
9892
"""When no draft CF exists, one should be created."""
99-
# Mark in_progress as closed
100-
commitfests["in_progress"].status = CommitFest.STATUS_CLOSED
101-
commitfests["in_progress"].save()
10293
# Delete the draft CF
10394
commitfests["draft"].delete()
10495

@@ -115,9 +106,6 @@ def test_draft_cf_created_when_missing(commitfests):
115106
def test_draft_cf_closes_when_enddate_passed(commitfests, alice):
116107
"""When a draft CF's enddate has passed, it should be closed."""
117108
draft_cf = commitfests["draft"]
118-
# Mark in_progress as closed
119-
commitfests["in_progress"].status = CommitFest.STATUS_CLOSED
120-
commitfests["in_progress"].save()
121109

122110
patch = Patch.objects.create(
123111
name="Draft Patch",

0 commit comments

Comments
 (0)