Require PE id to be defined in financial verification form
This commit is contained in:
@@ -72,3 +72,14 @@ class TestPENumberInForm:
|
||||
|
||||
assert response.status_code == 302
|
||||
assert "/requests/financial_verification_submitted" in response.headers.get("Location")
|
||||
|
||||
def test_submit_request_form_with_missing_pe_id(self, monkeypatch, client):
|
||||
self._set_monkeypatches(monkeypatch)
|
||||
|
||||
data = dict(self.required_data)
|
||||
data['pe_id'] = ''
|
||||
|
||||
response = self.submit_data(client, data)
|
||||
|
||||
assert "There were some errors, see below" in response.data.decode()
|
||||
assert response.status_code == 200
|
||||
|
Reference in New Issue
Block a user