From 66feccbc67668a2d7966e559a6f48e289c351c8f Mon Sep 17 00:00:00 2001 From: Robert Sparks Date: Thu, 24 Mar 2022 07:13:33 -0500 Subject: [PATCH] test: avoid edge case in test factory. Fixes #3513. (#3736) --- ietf/nomcom/tests.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ietf/nomcom/tests.py b/ietf/nomcom/tests.py index 4741bdd6e..bbe37c458 100644 --- a/ietf/nomcom/tests.py +++ b/ietf/nomcom/tests.py @@ -1485,7 +1485,7 @@ class NewActiveNomComTests(TestCase): def setUp(self): super().setUp() setup_test_public_keys_dir(self) - self.nc = NomComFactory.create(**nomcom_kwargs_for_year()) + self.nc = NomComFactory.create(**nomcom_kwargs_for_year(year=random.randint(1992,2100))) self.chair = self.nc.group.role_set.filter(name='chair').first().person self.saved_days_to_expire_nomination_link = settings.DAYS_TO_EXPIRE_NOMINATION_LINK @@ -1915,7 +1915,6 @@ Junk body for testing year = self.nc.year() def first_meeting_of_year(year): assert isinstance(year, int) - # FIXME: year is sometimes < 1990? assert year >= 1990 return (year-1985)*3+2 people = PersonFactory.create_batch(10)