mirror of
https://github.com/Kozea/Radicale.git
synced 2025-07-29 18:08:31 +00:00
Tests: Simplify HTTP status check
This commit is contained in:
parent
c6462a253a
commit
88ff1b4c28
4 changed files with 71 additions and 92 deletions
|
@ -26,8 +26,7 @@ class TestBaseWebRequests(BaseTest):
|
|||
"""Test web plugin."""
|
||||
|
||||
def test_internal(self) -> None:
|
||||
status, headers, _ = self.request("GET", "/.web")
|
||||
assert status == 302
|
||||
_, headers, _ = self.request("GET", "/.web", check=302)
|
||||
assert headers.get("Location") == ".web/"
|
||||
_, answer = self.get("/.web/")
|
||||
assert answer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue