Refactor to allow validating warnings on a form

This commit is contained in:
Patrick Smith
2018-07-16 15:49:27 -04:00
parent c86e703618
commit 10d4c2b90b
3 changed files with 29 additions and 16 deletions

View File

@@ -37,7 +37,7 @@ def test_submit_valid_request_form(monkeypatch, http_client, base_url):
monkeypatch.setattr(
"atst.handlers.request_new.RequestNew.check_xsrf_cookie", lambda s: True
)
monkeypatch.setattr("atst.forms.request.RequestForm.validate", lambda s, c: True)
monkeypatch.setattr("atst.forms.request.RequestForm.validate", lambda s: True)
# this just needs to send a known invalid form value
response = yield http_client.fetch(