Merge pull request #379 from dod-ccpo/logged-in-redirect
Root url should redirect if user is already logged in
This commit is contained in:
7
tests/routes/test_root.py
Normal file
7
tests/routes/test_root.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from tests.factories import UserFactory
|
||||
|
||||
|
||||
def test_root_redirects_if_user_is_logged_in(client, user_session):
|
||||
user_session(UserFactory.create())
|
||||
response = client.get("/", follow_redirects=False)
|
||||
assert "home" in response.location
|
@@ -4,7 +4,6 @@ import pytest
|
||||
@pytest.mark.parametrize(
|
||||
"path",
|
||||
(
|
||||
"/",
|
||||
"/workspaces",
|
||||
"/requests",
|
||||
"/requests/new/1",
|
||||
|
Reference in New Issue
Block a user