Remove redundant assertion from test
Address code review feedback by removing redundant check that status_code != 500, since we already assert status_code == 303 Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
@@ -28,9 +28,6 @@ class TestHealthEndpoints:
|
|||||||
assert "Location" in response.headers
|
assert "Location" in response.headers
|
||||||
assert response.headers["Location"] == "/setup?step=1"
|
assert response.headers["Location"] == "/setup?step=1"
|
||||||
|
|
||||||
# Should NOT be a 500 error
|
|
||||||
assert response.status_code != 500
|
|
||||||
|
|
||||||
def test_root_returns_200_when_setup_complete(self, client: TestClient):
|
def test_root_returns_200_when_setup_complete(self, client: TestClient):
|
||||||
"""Test that GET /?setup=complete bypasses the setup wizard check."""
|
"""Test that GET /?setup=complete bypasses the setup wizard check."""
|
||||||
# The ?setup=complete query param should bypass the wizard check
|
# The ?setup=complete query param should bypass the wizard check
|
||||||
|
|||||||
Reference in New Issue
Block a user