apply auth requirement to virtually all endpoints

This commit is contained in:
dandds
2018-08-06 10:43:44 -04:00
parent 4f7870aaff
commit be079a62dc
11 changed files with 59 additions and 11 deletions

View File

@@ -32,6 +32,7 @@ class TestPENumberInForm:
def _set_monkeypatches(self, monkeypatch):
monkeypatch.setattr("atst.forms.financial.FinancialForm.validate", lambda s: True)
monkeypatch.setattr("atst.domain.requests.Requests.get", lambda i: MOCK_REQUEST)
monkeypatch.setattr("atst.domain.auth.get_current_user", lambda *args: MOCK_USER)
def submit_data(self, client, data):
response = client.post(