If request FV is not verified, redirect to requests index

This commit is contained in:
richard-dds 2018-08-29 13:01:28 -04:00
parent caf6882a11
commit 62aacf55e7
2 changed files with 5 additions and 1 deletions

View File

@ -50,6 +50,10 @@ def update_financial_verification(request_id):
newWorkspace=True, newWorkspace=True,
) )
) )
else:
return redirect(
url_for("requests.requests_index", pendingFinancialVerification=True)
)
else: else:
form.reset() form.reset()

View File

@ -128,7 +128,7 @@ class TestPENumberInForm:
response = self.submit_data(client, data, extended=True) response = self.submit_data(client, data, extended=True)
assert response.status_code == 302 assert response.status_code == 302
assert "/projects/new" in response.headers.get("Location") assert "/requests" in response.headers.get("Location")
def test_submit_invalid_extended_financial_form( def test_submit_invalid_extended_financial_form(
self, monkeypatch, user_session, client, extended_financial_verification_data self, monkeypatch, user_session, client, extended_financial_verification_data