diff --git a/tests/factories.py b/tests/factories.py index f5d04a12..3a607c7d 100644 --- a/tests/factories.py +++ b/tests/factories.py @@ -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):