From 7fc58986faa3550ba7e0d5baf4bf6e94681846aa Mon Sep 17 00:00:00 2001 From: Jiri Kozel Date: Tue, 16 Jan 2024 11:37:45 +0100 Subject: [PATCH] Remove unneeded ensure_layman from oauth2_test.py --- src/layman/authn/oauth2_test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/layman/authn/oauth2_test.py b/src/layman/authn/oauth2_test.py index 3e2eae77a..b07c19f47 100644 --- a/src/layman/authn/oauth2_test.py +++ b/src/layman/authn/oauth2_test.py @@ -150,7 +150,7 @@ def test_unexisting_introspection_url(client, headers): f'{TOKEN_HEADER}': 'Bearer abc', } ]) -@pytest.mark.usefixtures('app_context', 'inactive_token_introspection_url', 'user_profile_url', 'ensure_layman') +@pytest.mark.usefixtures('app_context', 'inactive_token_introspection_url', 'user_profile_url') def test_token_inactive(client, headers): username = 'testuser1' url = url_for('rest_workspace_layers.get', workspace=username) @@ -166,7 +166,7 @@ def test_token_inactive(client, headers): f'{TOKEN_HEADER}': 'Bearer abc', } ]) -@pytest.mark.usefixtures('app_context', 'active_token_introspection_url', 'user_profile_url', 'ensure_layman') +@pytest.mark.usefixtures('app_context', 'active_token_introspection_url', 'user_profile_url') def test_token_active(client, headers): username = 'testuser1' url = url_for('rest_workspace_layers.get', workspace=username) @@ -176,7 +176,7 @@ def test_token_active(client, headers): assert resp_json['code'] == 40 -@pytest.mark.usefixtures('app_context', 'active_token_introspection_url', 'user_profile_url', 'ensure_layman') +@pytest.mark.usefixtures('app_context', 'active_token_introspection_url', 'user_profile_url') def test_authn_get_current_user_without_username(client): rest_path = url_for('rest_current_user.get') response = client.get(rest_path, headers={