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:
@@ -194,11 +194,13 @@ def test_task_orders_submit_form_step_three_add_clins(client, user_session, task
|
||||
"clins-0-start_date": "01/01/2020",
|
||||
"clins-0-end_date": "01/01/2021",
|
||||
"clins-0-obligated_amount": "5000",
|
||||
"clins-0-total_amount": "10000",
|
||||
"clins-1-jedi_clin_type": "JEDI_CLIN_1",
|
||||
"clins-1-number": "12312",
|
||||
"clins-1-start_date": "01/01/2020",
|
||||
"clins-1-end_date": "01/01/2021",
|
||||
"clins-1-obligated_amount": "5000",
|
||||
"clins-1-total_amount": "5000",
|
||||
}
|
||||
response = client.post(
|
||||
url_for(
|
||||
@@ -221,6 +223,7 @@ def test_task_orders_submit_form_step_three_add_clins_existing_to(
|
||||
"start_date": "01/01/2020",
|
||||
"end_date": "01/01/2021",
|
||||
"obligated_amount": "5000",
|
||||
"total_amount": "10000",
|
||||
},
|
||||
{
|
||||
"jedi_clin_type": "JEDI_CLIN_1",
|
||||
@@ -228,6 +231,7 @@ def test_task_orders_submit_form_step_three_add_clins_existing_to(
|
||||
"start_date": "01/01/2020",
|
||||
"end_date": "01/01/2021",
|
||||
"obligated_amount": "5000",
|
||||
"total_amount": "10000",
|
||||
},
|
||||
]
|
||||
TaskOrders.create_clins(task_order.id, clin_list)
|
||||
@@ -240,6 +244,7 @@ def test_task_orders_submit_form_step_three_add_clins_existing_to(
|
||||
"clins-0-start_date": "01/01/2020",
|
||||
"clins-0-end_date": "01/01/2021",
|
||||
"clins-0-obligated_amount": "5000",
|
||||
"clins-0-total_amount": "10000",
|
||||
}
|
||||
response = client.post(
|
||||
url_for(
|
||||
|
Reference in New Issue
Block a user