-
Notifications
You must be signed in to change notification settings - Fork 24
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
Conversation
…traint The first existing_campaign is unused in the test and looks like an oversight.
0d885b9
to
26ec374
Compare
J’ai ouvert la PR suite au problème de flakiness, mais Xavier l’avait déjà corrigé avec d98c011. Comme nous avons eu une solution différente, je propose ma solution, plus simple. |
Je m'étais posé la question. |
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) |
There was a problem hiding this comment.
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
Tiré par les cheveux et ce n’est plus le cas, les tests des vues de la page news génèrent plusieurs campagnes, comme les tests du cache de campagne. Je pense qu’on peut se passer de ce test maintenant. |
The first existing_campaign is unused in the test and looks like an oversight.