LazyFunction in CLINFactory
This commit is contained in:
parent
9edf816765
commit
14b3e3f933
@ -293,8 +293,10 @@ class CLINFactory(Base):
|
|||||||
number = factory.LazyFunction(random_task_order_number)
|
number = factory.LazyFunction(random_task_order_number)
|
||||||
start_date = datetime.date.today()
|
start_date = datetime.date.today()
|
||||||
end_date = factory.LazyFunction(random_future_date)
|
end_date = factory.LazyFunction(random_future_date)
|
||||||
obligated_amount = random.randint(100, 999999)
|
obligated_amount = factory.LazyFunction(lambda *args: random.randint(100, 999999))
|
||||||
jedi_clin_type = random.choice(list(clin.JEDICLINType))
|
jedi_clin_type = factory.LazyFunction(
|
||||||
|
lambda *args: random.choice(list(clin.JEDICLINType))
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class NotificationRecipientFactory(Base):
|
class NotificationRecipientFactory(Base):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user