Skip to content

fix: resolve missing pytest fixture in test_health_check#275

Draft
anshul23102 wants to merge 1 commit into
komalharshita:mainfrom
anshul23102:fix/test-health-check-fixture-clean
Draft

fix: resolve missing pytest fixture in test_health_check#275
anshul23102 wants to merge 1 commit into
komalharshita:mainfrom
anshul23102:fix/test-health-check-fixture-clean

Conversation

@anshul23102
Copy link
Copy Markdown

Closes #273

What was wrong

test_health_check(client) declared client as a parameter, expecting a pytest fixture that was never defined anywhere in the test file. Every other test uses the local get_client() helper directly. This caused pytest to report an ERROR on every run, meaning the /health endpoint was never actually tested.

What changed

Removed the client parameter and added client = get_client() inside the function body, consistent with all other tests in the file.

Tests

pytest tests/ -v
# 30 passed  (was: 29 passed, 1 error)

Type of change

  • Bug fix (test infrastructure)

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.
@vercel
Copy link
Copy Markdown

vercel Bot commented May 18, 2026

@anshul23102 is attempting to deploy a commit to the komalsony234-1530's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: test_health_check fails with missing pytest fixture error

1 participant