Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplifier Announcement test_start_date_conflict_constraint #4717

Merged
merged 1 commit into from
Sep 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
Comment on lines -123 to 125
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm oui tout à fait ... désolé je pense il m'a loupé quand j'ai changé le comportement défaut du start_date de AnnouncementCampaignFactory ou pendant le rebase

Expand Down