Skip to content

Strict detection of ANY in multi items patterns - #313

Merged
lundberg merged 1 commit into
masterfrom
fix/multi-item-patterns
Apr 8, 2026
Merged

lundberg merged 1 commit into
masterfrom
fix/multi-item-patterns

Conversation

@lundberg

@lundberg lundberg commented Apr 8, 2026 •

Copy link
Copy Markdown
Owner

Fixes #311

@lundberg lundberg changed the title Strictly detect ANY in multi items patterns Strict detection of ANY in multi items patterns Apr 8, 2026
Comment thread respx/patterns.py
ANY
if parse_any and value == str(ANY)
else str(ANY)
if encode_any and value is ANY

@lundberg lundberg Apr 8, 2026 •

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

NOTE:

we're using is here rather than ==

@codecov

codecov Bot commented Apr 8, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (6f1bf70) to head (47bf68e).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #313   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           22        22           
  Lines         2935      2941    +6     
  Branches       200       200           
=========================================
+ Hits          2935      2941    +6     

☔ 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 merged commit 1da5d2f into master Apr 8, 2026
11 checks passed
@lundberg
lundberg deleted the fix/multi-item-patterns branch April 8, 2026 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Regression 0.23.0: multiple mocks with various params

1 participant