Update existing tests for new CLIN logic
- Factory adds total_amount field, which is always greater than obligated field - add total_amount field on tests that create TOs manually - update tests that calculate total_contract_amount and total_obligated_amount
This commit is contained in:
@@ -291,8 +291,8 @@ class CLINFactory(Base):
|
||||
number = factory.LazyFunction(random_task_order_number)
|
||||
start_date = datetime.date.today()
|
||||
end_date = factory.LazyFunction(random_future_date)
|
||||
total_amount = factory.LazyFunction(lambda *args: random.randint(100, 999999))
|
||||
obligated_amount = factory.LazyFunction(lambda *args: random.randint(100, 999999))
|
||||
total_amount = factory.LazyFunction(lambda *args: random.randint(50000, 999999))
|
||||
obligated_amount = factory.LazyFunction(lambda *args: random.randint(100, 50000))
|
||||
jedi_clin_type = factory.LazyFunction(
|
||||
lambda *args: random.choice(list(clin.JEDICLINType))
|
||||
)
|
||||
|
Reference in New Issue
Block a user