Skip to content

doc: Adding exit code for pytest usage examples (#8790) #8800

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

Merged
merged 3 commits into from
Jun 27, 2021

Conversation

Srip
Copy link
Contributor

@Srip Srip commented Jun 27, 2021

Fix #8790

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 @Srip, we appreciate the contribution!

Left a few minor suggestions, please take a look. 👍

@@ -191,7 +193,8 @@ You can specify additional plugins to ``pytest.main``:
print("*** test run reporting finishing")


pytest.main(["-qq"], plugins=[MyPlugin()])
if __name__ == "__main__":
Copy link
Member

Choose a reason for hiding this comment

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

👍

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 a lot!

@nicoddemus nicoddemus enabled auto-merge (squash) June 27, 2021 13:11
@nicoddemus nicoddemus merged commit 6573107 into pytest-dev:main Jun 27, 2021
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.

Add note about exit code in example code for pytest.main()
3 participants