Skip to content

Support configure-decorated test with fixture#213

Merged
lundberg merged 1 commit intomasterfrom
fix-decorator-plus-fixture
Sep 7, 2022
Merged

Support configure-decorated test with fixture#213
lundberg merged 1 commit intomasterfrom
fix-decorator-plus-fixture

Conversation

@lundberg
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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