-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
capture: cleanup item fixture handling #6663
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
Conversation
This started by looking at how to get the current test item in general, and then I noticed that it is not necessary for the capture plugin to track it manually in the first place.
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.
AFAIK this is practically an internal api, so the change is fine
Thanks for the review. The functions are at least not in the docs apparently, as Would like to get @nicoddemus's opinion also, given that I've seen him doing work in that area. |
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.
Thanks! Indeed this looks better.
Please consider my naming suggestions though. 👍
Pushed a fixup with 2/3 suggestions applied. |
Based on the removed doc for `_install_capture_fixture_on_item`. Follow-up to pytest-dev#6663.
Based on the removed doc for `_install_capture_fixture_on_item`. Follow-up to pytest-dev#6663. Update src/_pytest/capture.py [ci skip] Co-Authored-By: Ran Benita <[email protected]>
Based on the removed doc for `_install_capture_fixture_on_item`. Follow-up to #6663. Co-authored-by: Ran Benita <[email protected]>
This started by looking at how to get the current test item in general,
and then I noticed that it is not necessary for the capture plugin to
track it manually in the first place.
Changes the API for
CaptureManager.*_fixture
methods (does not take itemanymore). This could be kept / ignored if required.