mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-11 09:28:27 -04:00
Updated flask-login to version 0.3.2
This commit is contained in:
@@ -14,15 +14,12 @@ def test_render_sign_in_returns_sign_in_template(app_):
|
||||
|
||||
def test_logged_in_user_redirects_to_choose_service(app_,
|
||||
api_user_active,
|
||||
mock_get_user_by_email,
|
||||
mock_login):
|
||||
mock_get_user):
|
||||
|
||||
with app_.test_request_context():
|
||||
with app_.test_client() as client:
|
||||
client.login(api_user_active)
|
||||
response = client.get(url_for('main.sign_in'))
|
||||
assert response.status_code == 302
|
||||
|
||||
response = client.get(url_for('main.sign_in', follow_redirects=True))
|
||||
assert response.location == url_for('main.choose_service', _external=True)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user