Skip to content

Enhance json pattern with ANY support#314

Open
lundberg wants to merge 1 commit into
masterfrom
feature/json-pattern-any-support
Open

Enhance json pattern with ANY support#314
lundberg wants to merge 1 commit into
masterfrom
feature/json-pattern-any-support

Conversation

@lundberg
Copy link
Copy Markdown
Owner

@lundberg lundberg commented Apr 9, 2026

Fixes #304

Allows json pattern to match ANY, e.g.

respx.post("https://example.com/", json__foo=ANY)

.. would match ..

httpx.post("https://example.com/", json={"foo": "bar"})

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (fc8b43b) to head (2294da2).

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #314   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           22        22           
  Lines         2941      2945    +4     
  Branches       200       200           
=========================================
+ Hits          2941      2945    +4     

☔ View full report in Codecov by Sentry.
📢 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.

@lundberg lundberg added the enhancement New feature or request label Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

unittest.mock.ANY not usable in json lookups

1 participant