Fix tests, add financial verification data fixture

This commit is contained in:
Montana
2018-08-27 10:59:30 -04:00
parent 900bb7b7ad
commit 4f9e7c3408
3 changed files with 28 additions and 28 deletions

View File

@@ -121,24 +121,18 @@ request_financial_data = {
"treasury_code": "00123456",
"ba_code": "024A",
}
task_order_financial_data = {
"funding_type": "RDTE",
"funding_type_other": "other",
"clin_0001": 50000,
"clin_0003": 13000,
"clin_1001": 30000,
"clin_1003": 7000,
"clin_2001": 30000,
"clin_2003": 7000,
}
def test_update_financial_verification_without_task_order():
def test_update_financial_verification_without_task_order(
extended_financial_verification_data
):
request = RequestFactory.create()
financial_data = {**request_financial_data, **task_order_financial_data}
financial_data = {**request_financial_data, **extended_financial_verification_data}
Requests.update_financial_verification(request.id, financial_data)
assert request.task_order
assert request.task_order.clin_0001 == task_order_financial_data["clin_0001"]
assert request.task_order.clin_0001 == int(
extended_financial_verification_data["clin_0001"]
)
assert request.task_order.source == TaskOrderSource.MANUAL