Skip to content

Commit

Permalink
test: Tweak test to avoid Leap Day failure (#7119)
Browse files Browse the repository at this point in the history
* test: Tweak test to avoid Leap Day failure

🎉

* chore: Rephrase comment

* chore: Remove debug code
  • Loading branch information
jennifer-richards committed Feb 29, 2024
1 parent 08e0c83 commit fb84f32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ietf/submit/tests.py
Expand Up @@ -3669,7 +3669,8 @@ def test_api_submit_no_title(self):
self.assertContains(r, expected, status_code=400)

def test_api_submit_failed_idnits(self):
r, author, name = self.do_post_submission('00', year="2010")
# `year` on the next line must be leap year or this test will fail every Feb 29
r, author, name = self.do_post_submission('00', year="2012")
expected = "Document date must be within 3 days of submission date"
self.assertContains(r, expected, status_code=400)

Expand Down

1 comment on commit fb84f32

@Vellicia25

This comment was marked as spam.

Please sign in to comment.