Skip to content

Commit

Permalink
Accept url as forbidden if HTTP method not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
FestplattenSchnitzel committed May 17, 2024
1 parent 2444c0f commit 0af183f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/frontend/assertions.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def assert_url_forbidden(self, url: str, method: str = "HEAD", **kw) -> Response
resp = self.open(url, method=method, **kw)
status = resp.status_code
assert (
status == 403
status == 403 or status == 405
), f"Access to {url} expected to be forbidden, got status {status}"
return resp

Expand Down

0 comments on commit 0af183f

Please sign in to comment.