Skip to content

Commit 66feccb

Browse files
authored
test: avoid edge case in test factory. Fixes ietf-tools#3513. (ietf-tools#3736)
1 parent 54b498f commit 66feccb

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

ietf/nomcom/tests.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,7 +1485,7 @@ class NewActiveNomComTests(TestCase):
14851485
def setUp(self):
14861486
super().setUp()
14871487
setup_test_public_keys_dir(self)
1488-
self.nc = NomComFactory.create(**nomcom_kwargs_for_year())
1488+
self.nc = NomComFactory.create(**nomcom_kwargs_for_year(year=random.randint(1992,2100)))
14891489
self.chair = self.nc.group.role_set.filter(name='chair').first().person
14901490
self.saved_days_to_expire_nomination_link = settings.DAYS_TO_EXPIRE_NOMINATION_LINK
14911491

@@ -1915,7 +1915,6 @@ def test_volunteers(self):
19151915
year = self.nc.year()
19161916
def first_meeting_of_year(year):
19171917
assert isinstance(year, int)
1918-
# FIXME: year is sometimes < 1990?
19191918
assert year >= 1990
19201919
return (year-1985)*3+2
19211920
people = PersonFactory.create_batch(10)

0 commit comments

Comments
 (0)