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

Respect pytest --capture=no and -s flags #353

Merged
merged 3 commits into from
Oct 23, 2020

Conversation

gnikonorov
Copy link
Member

Make pytest-html respect the --capture=no and -s pytest flags as requested in #171.

Note that this only partially resolves the issue. We should also respect --show-capture=no, but I will add that in a follow up pr to make the changes smaller.

@gnikonorov gnikonorov added the bug This issue/PR relates to a bug. label Oct 21, 2020
@gnikonorov gnikonorov self-assigned this Oct 21, 2020
Copy link
Contributor

@BeyondEvil BeyondEvil left a comment

Choose a reason for hiding this comment

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

This is beautiful @gnikonorov !

One small nitpick. 😊

pytest_html/plugin.py Show resolved Hide resolved
@BeyondEvil
Copy link
Contributor

BeyondEvil commented Oct 21, 2020 via email

@gnikonorov
Copy link
Member Author

Bump for a review/merge @ssbarnea

@gnikonorov
Copy link
Member Author

Hey @BeyondEvil if you are OK with this PR can you merge it in ( I'd rather not merge my own PRs, since I don't know how everyone else feels about them ). I'd like this in master so I can start work on the second half of #171, implementing support for --show-capture

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants