mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-16 20:49:00 -04:00
Reintroduce some tests. A bit of cleanup of mocks.
User object fields made a bit clearer and simple test to verify user added.
This commit is contained in:
@@ -4,12 +4,11 @@ from flask import url_for
|
||||
def test_logged_in_user_redirects_to_choose_service(app_,
|
||||
db_,
|
||||
db_session,
|
||||
mock_api_user,
|
||||
mock_user_loader,
|
||||
mock_user_dao_get_by_email):
|
||||
mock_active_user,
|
||||
mock_get_by_email):
|
||||
with app_.test_request_context():
|
||||
with app_.test_client() as client:
|
||||
client.login(mock_api_user)
|
||||
client.login(mock_active_user)
|
||||
response = client.get(url_for('main.index'))
|
||||
assert response.status_code == 302
|
||||
|
||||
|
||||
Reference in New Issue
Block a user