Skip to content

Commit

Permalink
Remove unneeded ensure_layman from oauth2_test.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jirik committed Jan 16, 2024
1 parent 1ad81e5 commit 7fc5898
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/layman/authn/oauth2_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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={
Expand Down

0 comments on commit 7fc5898

Please sign in to comment.