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

Support configure-decorated test with fixture #213

Merged
merged 1 commit into from
Sep 7, 2022

Conversation

lundberg
Copy link
Owner

@lundberg lundberg commented Aug 25, 2022

Fixes #210.

i.e. solves test functions not being called with pytest fixtures when decorated with a configured respx.mock(...).

@codecov-commenter
Copy link

Codecov Report

Merging #213 (539b9a7) into master (33566ff) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master      #213   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           20        20           
  Lines         2735      2740    +5     
  Branches       338       337    -1     
=========================================
+ Hits          2735      2740    +5     
Impacted Files Coverage Δ
respx/router.py 100.00% <100.00%> (ø)
tests/test_mock.py 100.00% <100.00%> (ø)
tests/test_plugin.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@lundberg lundberg merged commit aa99eec into master Sep 7, 2022
@lundberg lundberg deleted the fix-decorator-plus-fixture branch September 7, 2022 13:53
@lundberg
Copy link
Owner Author

Also solves #214

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.

respx decorator breaks pytest fixture
2 participants