Refactor forms so we can pass requests_client to validate

This commit is contained in:
Patrick Smith
2018-07-11 13:35:29 -04:00
parent d84a38eb13
commit f51dc8f07c
8 changed files with 21 additions and 12 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: True)
monkeypatch.setattr("atst.forms.request.RequestForm.validate", lambda s, c: True)
# this just needs to send a known invalid form value
response = yield http_client.fetch(