Skip to content

test: Use httpx2_mock fixture from httpx2-pytest 2 - #169

Merged
jodal merged 1 commit into
mainfrom
httpx2-pytest-2
Sep 27, 2026
Merged

jodal merged 1 commit into
mainfrom
httpx2-pytest-2

Conversation

@jodal

@jodal jodal commented Sep 27, 2026

Copy link
Copy Markdown
Member

🤖 Summary

httpx2-pytest 2.0.0 (2026-09-04) removed the httpx_mock fixture. Its replacement is httpx2_mock. The test dependency httpx2-pytest>=1 allows 2.0.0, so CI now installs it, and 23 tests stop at setup with fixture 'httpx_mock' not found.

This PR:

  • Changes httpx_mock to httpx2_mock in the tests.
  • Raises the bound to httpx2-pytest>=2, because 1.x does not have httpx2_mock.

@jodal
jodal merged commit 951669c into main Sep 27, 2026
14 checks passed
@jodal
jodal deleted the httpx2-pytest-2 branch September 27, 2026 18:47
@codecov

codecov Bot commented Sep 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (89a4193) to head (3c7c6fc).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #169   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            8         8           
  Lines          318       318           
  Branches         9         9           
=========================================
  Hits           318       318           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant