Skip to content

Commit

Permalink
Merge pull request #357 from jsmolar/jsmolar-fix-branch
Browse files Browse the repository at this point in the history
Remove unnecessary code from identity auth test
  • Loading branch information
Jakub Smolar authored Mar 6, 2024
2 parents d90357e + 3460382 commit 96d6bc7
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@ def oidc_provider(request) -> OIDCProvider:
return request.getfixturevalue(request.param)


# pylint: disable=unused-argument
@pytest.fixture(scope="module")
def authorization_name(blame, oidc_provider):
"""Ensure for every oidc_provider we have a unique authorization"""
return blame("authz")


@pytest.fixture(scope="module")
def wrong_auth(oidc_provider, auth0, rhsso):
"""Different (but valid) auth than was configured"""
Expand All @@ -50,14 +43,12 @@ def test_wrong_auth(wrong_auth, client):
assert response.status_code == 401


# pylint: disable=unused-argument
def test_no_auth(client):
"""Tests request without any auth"""
response = client.get("/get")
assert response.status_code == 401


# pylint: disable=unused-argument
def test_invalid_auth(client):
"""Tests request with invalid token"""
response = client.get("/get", headers={"Authorization": "Bearer xyz"})
Expand Down

0 comments on commit 96d6bc7

Please sign in to comment.