Skip to content

Conversation

@blueyed
Copy link
Contributor

@blueyed blueyed commented Feb 9, 2020

Follow-up to #6663.

@blueyed blueyed changed the title doc: add docstring for CaptureManager._capturing_for_request Factor out _capturing_for_request into a function, doc Feb 9, 2020
@blueyed blueyed changed the base branch from features to master February 12, 2020 15:08
Copy link
Member

@bluetech bluetech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An argument in favor of keeping it inside the CaptureManager class is that it sets and accesses internal details of CaptureManager, and is basically its "heart", so and it's nice to have it encapsulated.

@blueyed
Copy link
Contributor Author

blueyed commented Feb 12, 2020

An argument in favor of keeping it inside the CaptureManager class is that it sets and accesses internal details of CaptureManager, and is basically its "heart", so and it's nice to have it encapsulated.

Makes sense. The main motivation was to have less (duplicated) boilerplate code mainly.

Pulled 5cd2214 out.

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]>
@blueyed blueyed changed the title Factor out _capturing_for_request into a function, doc doc for _capturing_for_request Feb 12, 2020
Copy link
Member

@nicoddemus nicoddemus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@blueyed blueyed merged commit 07b7b6f into pytest-dev:master Feb 13, 2020
@blueyed blueyed deleted the doc branch February 13, 2020 11:09
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.

3 participants