mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-06 07:55:10 +00:00
test: delete slow, timing-based and redundant tests
This commit is contained in:
@@ -30,8 +30,3 @@ def test_health_requires_secret_key(server_url: str, secret_key: str) -> None:
|
||||
|
||||
r = requests.get(f"{server_url}/api/health", timeout=10)
|
||||
assert r.status_code == (401 if secret_key else 200)
|
||||
|
||||
|
||||
def test_unknown_route_returns_404(http_session, server_url: str) -> None:
|
||||
r = http_session.get(f"{server_url}/api/this-does-not-exist", timeout=10)
|
||||
assert r.status_code in (404, 405)
|
||||
|
||||
Reference in New Issue
Block a user