LazyFunction in CLINFactory

This commit is contained in:
George Drummond 2019-06-12 14:10:12 -04:00
parent 9edf816765
commit 14b3e3f933
No known key found for this signature in database
GPG Key ID: 296DD6077123BF17

View File

@ -293,8 +293,10 @@ class CLINFactory(Base):
number = factory.LazyFunction(random_task_order_number)
start_date = datetime.date.today()
end_date = factory.LazyFunction(random_future_date)
obligated_amount = random.randint(100, 999999)
jedi_clin_type = random.choice(list(clin.JEDICLINType))
obligated_amount = factory.LazyFunction(lambda *args: random.randint(100, 999999))
jedi_clin_type = factory.LazyFunction(
lambda *args: random.choice(list(clin.JEDICLINType))
)
class NotificationRecipientFactory(Base):