Skip to content

Commit

Permalink
fix some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lionick committed Oct 18, 2024
1 parent a598490 commit 7170edc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/test_server_24_oauth2_authorization_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ def test_verify_uri_noregistered(self):
_context = self.endpoint.upstream_get("context")
request = {"redirect_uri": "https://rp.example.com/cb"}

with pytest.raises(KeyError):
with pytest.raises(UnknownClient):
verify_uri(_context, request, "redirect_uri", "client_id")

def test_verify_uri_unregistered(self):
Expand Down Expand Up @@ -553,7 +553,7 @@ def test_verify_uri_wrong_uri_type(self):
_context.cdb["client_id"] = {"redirect_uris": [("https://rp.example.com/cb", {})]}

request = {"redirect_uri": "https://rp.example.com/cb?foo=bob"}
with pytest.raises(ValueError):
with pytest.raises(URIError):
verify_uri(_context, request, "post_logout_redirect_uri", "client_id")

def test_verify_uri_none_registered(self):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_server_24_oidc_authorization_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ def test_verify_uri_noregistered(self):
_ec = self.endpoint.upstream_get("context")
request = {"redirect_uri": "https://rp.example.com/cb"}

with pytest.raises(KeyError):
with pytest.raises(UnknownClient):
verify_uri(_ec, request, "redirect_uri", "client_id")

def test_verify_uri_unregistered(self):
Expand Down

0 comments on commit 7170edc

Please sign in to comment.