Redirect to home after login, which redirects elsewhere

This commit is contained in:
richard-dds
2018-09-05 10:39:05 -04:00
parent 2e77387d98
commit fa105a95e3
5 changed files with 7 additions and 10 deletions

View File

@@ -33,7 +33,7 @@ def test_successful_login_redirect_non_ccpo(client, monkeypatch):
)
assert resp.status_code == 302
assert "requests" in resp.headers["Location"]
assert "home" in resp.headers["Location"]
assert session["user_id"]
@@ -57,7 +57,7 @@ def test_successful_login_redirect_ccpo(client, monkeypatch):
)
assert resp.status_code == 302
assert "requests" in resp.headers["Location"]
assert "home" in resp.headers["Location"]
assert session["user_id"]
@@ -119,8 +119,6 @@ def test_crl_validation_on_login(client):
"HTTP_X_SSL_CLIENT_CERT": good_cert,
},
)
assert resp.status_code == 302
assert "requests" in resp.headers["Location"]
assert session["user_id"]