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

Fix PytestCollectionWarning in tests #799

Merged
merged 1 commit into from
Mar 29, 2024

Conversation

sarahec
Copy link
Contributor

@sarahec sarahec commented Mar 29, 2024

Pytest emits a PytestCollectionWarning whenever it encounters a class whose name begins with Test. Setting __test__ = False in these classes resolves the issue.

See https://adamj.eu/tech/2020/07/28/how-to-fix-a-pytest-collection-warning-about-web-tests-test-app-class/

@sarahec sarahec changed the title Master Fix PytestCollectionWarning in tests Mar 29, 2024
@emeryberger emeryberger merged commit b03a596 into plasma-umass:master Mar 29, 2024
22 checks passed
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.

2 participants