Skip to content

fix: resolve missing 'client' argument in test_health_check - #345

Merged
komalharshita merged 2 commits into
komalharshita:mainfrom
Chirantan112:patch-1
Jun 1, 2026
Merged

fix: resolve missing 'client' argument in test_health_check#345
komalharshita merged 2 commits into
komalharshita:mainfrom
Chirantan112:patch-1

Conversation

@Chirantan112

Copy link
Copy Markdown
Contributor

Description

This Pull Request addresses the universal CI failure identified in issue #344. The test_health_check function in tests/test_basic.py was missing the required client positional argument, causing all automated test runs to fail with a TypeError.

Changes Made

  • Updated test_health_check signature in tests/test_basic.py to accept the client fixture.
  • Removed the manual call to get_client() within the test to align with pytest's fixture injection pattern.

Related Issue

Closes #344

Verification

Once merged, this will restore green status for all pending and future Pull Requests across the repository.

@vercel

vercel Bot commented May 20, 2026

Copy link
Copy Markdown

@Chirantan112 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.

komalharshita
komalharshita previously approved these changes May 25, 2026

@komalharshita komalharshita left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good fix overall — this correctly resolves the CI failure by aligning test_health_check with the repository’s existing pytest fixture injection pattern.

Things done well:

  • Minimal and properly scoped change
  • Correct use of the shared client fixture
  • Removed redundant manual client initialization
  • Fixes a real repository-wide testing issue without introducing unrelated modifications

This is clean, safe, and ready to merge.

@komalharshita

Copy link
Copy Markdown
Owner

@Chirantan112 but first ensure that all checks pass

@komalharshita komalharshita added the need review Further information is requested label May 25, 2026
### ✅ CI Failure Resolved
I've updated the `test_health_check` function to correctly use the internal `get_client()` helper. 

**Changes made:**
* **Reverted** the function signature to `def test_health_check()` (removed the fixture injection).
* **Restored** the manual client initialization: `client = get_client()`.
* **Standardized** currency symbols to `Rs.` to ensure compatibility.

**Verification:**
I have verified this fix on my local environment (WSL/Kali). Running `pytest` now yields:
`30 passed in 0.58s` 🚀

Ready for final review!
@Chirantan112

Chirantan112 commented May 26, 2026

Copy link
Copy Markdown
Contributor Author

Final Update: Test Suite Verified

I have finalized the fix for the test_health_check and stabilized the test environment.

Key Actions:

  • Corrected Test Logic: Restored the get_client() helper function initialization to match the project's architecture.
  • Symbol Stability: Standardized currency symbols to Rs. to ensure cross-platform compatibility.
  • Local Verification: Confirmed that all 30 tests pass in a clean local environment.

The PR is now stable and ready for review. Thank you for your patience!

@komalharshita
komalharshita merged commit eeacb8f into komalharshita:main Jun 1, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Universal CI failure in test_health_check due to missing client fixture

2 participants