Skip to content

Commit

Permalink
Simplify AnnouncementCampaignModelTest::test_start_date_conflict_cons…
Browse files Browse the repository at this point in the history
…traint

The first existing_campaign is unused in the test and looks like an
oversight.
  • Loading branch information
francoisfreitag committed Sep 11, 2024
1 parent 9b6fc6b commit be75be5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/communications/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,6 @@ def test_start_date_day_constraint(self):
AnnouncementCampaignFactory(start_date=date(2024, 1, 2))

def test_start_date_conflict_constraint(self):
existing_campaign = AnnouncementCampaignFactory(start_date=date(2023, 1, 1))

# can modify existing value without triggering constraint
existing_campaign = AnnouncementCampaignFactory(start_date=date(2024, 1, 1))
existing_campaign.start_date = date(2024, 2, 1)
Expand Down

0 comments on commit be75be5

Please sign in to comment.