Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(regex): Fix usage of regex values in header matchers #97

Merged
merged 7 commits into from
Dec 23, 2023

Conversation

sarayourfriend
Copy link
Collaborator

Fixes #96.

Adds new unit tests to reproduce the issue in the first commit, then fixes them in the subsequent commit. I also added more tests to cover other aspects of the headers matcher that were not tested before and fixed an issue I found with using "re/.../" formatted strings and actual compiled regex patterns as values in the headers.

In a future PR I'd like to add tests for each matcher type.

@sarayourfriend sarayourfriend merged commit 43409d3 into master Dec 23, 2023
8 checks passed
@sarayourfriend sarayourfriend deleted the fix/re-pattern-headers branch December 23, 2023 03:45
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.

HeadersMatcher: 're.Pattern' object has no attribute 'decode' with pook 1.2.0
1 participant