Skip to content

Commit d832302

Browse files
anshul23102claude
andcommitted
fix: resolve missing pytest fixture in test_health_check
test_health_check(client) declared a 'client' parameter expecting a pytest fixture that was never defined. Every other test in the suite uses the local get_client() helper instead. The error caused the entire test run to report an ERROR and the health endpoint was never actually tested. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 9b1012b commit d832302

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_basic.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,8 @@ def test_download_code_found():
280280
response = client.get("/project/1/download")
281281
assert response.status_code == 200
282282

283-
def test_health_check(client):
283+
def test_health_check():
284+
client = get_client()
284285
response = client.get("/health")
285286
assert response.status_code == 200
286287
data = response.get_json()

0 commit comments

Comments
 (0)