Skip to content

Fix is_false custom matcher - #205

Merged
alexliesenfeld merged 1 commit into
httpmock:masterfrom
dfaust:fix-custom-matchers
Jan 18, 2026
Merged

alexliesenfeld merged 1 commit into
httpmock:masterfrom
dfaust:fix-custom-matchers

Conversation

@dfaust

@dfaust dfaust commented Jan 6, 2026 •

Copy link
Copy Markdown
Contributor

Call is_true matcher once per request and don't call is_false at all.

The docs for is_false state:

If this function returns false, the request is considered a match

But I had to return true for the test to work. So this is likely another bug.

Call is_true matcher once per request and call is_false at all.
@alexliesenfeld

Copy link
Copy Markdown
Member

Oh, you are right, this is a bug. Thank you for taking the time to fix this! Very much appreciated!

@alexliesenfeld
alexliesenfeld merged commit b0487b6 into httpmock:master Jan 18, 2026
@alexliesenfeld alexliesenfeld changed the title Fix custom matchers Fix is_false custom matcher Jan 18, 2026
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.

2 participants