better date range for task order expiration date in test factory

This commit is contained in:
dandds 2018-09-24 11:20:52 -04:00
parent 238e8ff16d
commit 218c142020

View File

@ -196,7 +196,9 @@ class TaskOrderFactory(Base):
)
expiration_date = factory.LazyFunction(
lambda: datetime.date(
datetime.date.today().year + random.randrange(1, 15), 1, 1
datetime.date.today().year + random.randrange(1, 5),
random.randrange(1, 12),
random.randrange(1, 28),
)
)
clin_0001 = random.randrange(100, 100000)