If request FV is not verified, redirect to requests index
This commit is contained in:
parent
caf6882a11
commit
62aacf55e7
@ -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()
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user