apply auth requirement to virtually all endpoints
This commit is contained in:
@@ -5,14 +5,13 @@ import pytest
|
||||
"/home",
|
||||
"/workspaces",
|
||||
"/requests",
|
||||
"/requests/new",
|
||||
"/requests/new/2",
|
||||
"/requests/new/1",
|
||||
"/users",
|
||||
"/reports",
|
||||
"/calculator",
|
||||
))
|
||||
def test_routes(path, client, monkeypatch):
|
||||
monkeypatch.setattr("atst.domain.auth.get_current_user", lambda *args: True)
|
||||
def test_routes(path, client, user_session):
|
||||
user_session()
|
||||
|
||||
response = client.get(path)
|
||||
assert response.status_code == 200
|
||||
|
Reference in New Issue
Block a user