Raise error if csp estimate is not of proper type

This commit is contained in:
Patrick Smith
2019-01-22 11:47:54 -05:00
parent 30ebebb13a
commit f580f69d35
4 changed files with 42 additions and 1 deletions

View File

@@ -43,7 +43,7 @@ def serialize_dates(data):
# TODO: this test will need to be more complicated when we add validation to
# the forms
def test_create_new_task_order(client, user_session):
def test_create_new_task_order(client, user_session, pdf_upload):
creator = UserFactory.create()
user_session(creator)
@@ -66,6 +66,7 @@ def test_create_new_task_order(client, user_session):
funding_data = slice_data_for_section(task_order_data, "funding")
funding_data = serialize_dates(funding_data)
funding_data["csp_estimate"] = pdf_upload
response = client.post(
response.headers["Location"], data=funding_data, follow_redirects=False
)