diff --git a/tests/app/main/views/test_api_keys.py b/tests/app/main/views/test_api_keys.py index 94ef8fe41..fbd2054ea 100644 --- a/tests/app/main/views/test_api_keys.py +++ b/tests/app/main/views/test_api_keys.py @@ -5,7 +5,10 @@ from flask import url_for def test_should_show_documentation_page(app_, db_, db_session, - active_user): + active_user, + mock_get_service, + mock_get_services, + mock_user_loader): with app_.test_request_context(): with app_.test_client() as client: client.login(active_user) @@ -18,6 +21,9 @@ def test_should_show_empty_api_keys_page(app_, db_, db_session, active_user, + mock_get_service, + mock_get_services, + mock_user_loader, mock_get_no_api_keys): with app_.test_request_context(): with app_.test_client() as client: @@ -34,6 +40,9 @@ def test_should_show_api_keys_page(app_, db_, db_session, active_user, + mock_get_service, + mock_get_services, + mock_user_loader, mock_get_api_keys): with app_.test_request_context(): with app_.test_client() as client: @@ -50,7 +59,10 @@ def test_should_show_api_keys_page(app_, def test_should_show_name_api_key_page(app_, db_, db_session, - active_user): + active_user, + mock_get_service, + mock_get_services, + mock_user_loader): with app_.test_request_context(): with app_.test_client() as client: client.login(active_user) @@ -63,6 +75,9 @@ def test_should_render_show_api_key(app_, db_, db_session, active_user, + mock_get_service, + mock_get_services, + mock_user_loader, mock_create_api_key): with app_.test_request_context(): with app_.test_client() as client: @@ -79,6 +94,9 @@ def test_should_show_confirm_revoke_api_key(app_, db_, db_session, active_user, + mock_get_service, + mock_get_services, + mock_user_loader, mock_get_api_keys): with app_.test_request_context(): with app_.test_client() as client: @@ -94,6 +112,9 @@ def test_should_redirect_after_revoking_api_key(app_, db_, db_session, active_user, + mock_get_service, + mock_get_services, + mock_user_loader, mock_revoke_api_key, mock_get_api_keys): with app_.test_request_context():