-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Remove cached_setup and Metafunc.addcall #4490
Remove cached_setup and Metafunc.addcall #4490
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks good, we ought to investigate which of the changed tests are better removed - i beleive 2-3 of them might be better gone
Codecov Report
@@ Coverage Diff @@
## features #4490 +/- ##
============================================
- Coverage 95.82% 95.76% -0.06%
============================================
Files 111 111
Lines 25038 24853 -185
Branches 2463 2455 -8
============================================
- Hits 23992 23801 -191
- Misses 736 741 +5
- Partials 310 311 +1
Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## features #4490 +/- ##
============================================
- Coverage 95.82% 95.76% -0.06%
============================================
Files 111 111
Lines 25038 24853 -185
Branches 2463 2455 -8
============================================
- Hits 23992 23801 -191
- Misses 736 741 +5
- Partials 310 311 +1
Continue to review full report at Codecov.
|
Removed
request.cached_setup
andMetafunc.addcall
.Fix #4489, #3083
A note: I had to remove some tests because
Metafunc.addcall
can combine arguments in multiple levels ofpytest_generate_tests
hooks, whileMetafunc.parametrize
specifically has a check against that. For example:When converted to use
metafunc.parametrize
:We get this error:
I think this is fine, as users who might still rely on
cached_setup
's behavior would have probably complain by now.