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

Rename various test-related classes to avoid pytest treating them as tests #1684

Merged
merged 2 commits into from
Aug 9, 2022

Conversation

mdickinson
Copy link
Member

@mdickinson mdickinson commented Aug 8, 2022

This PR renames a mixin class to avoid Pytest trying to run it as a test class in its own right.

EDIT: Updated to rename a few more classes that Pytest otherwise tries to interpret as test classes.

@mdickinson mdickinson changed the title Rename a test class to avoid pytest from picking it up Rename various test-related classes to avoid pytest treating them as tests Aug 8, 2022
@mdickinson mdickinson merged commit 2da657b into main Aug 9, 2022
@mdickinson mdickinson deleted the fix/rename-non-test-class branch August 9, 2022 13:02
mdickinson added a commit that referenced this pull request Aug 9, 2022
This PR adds a pytest configuration to ignore traits-stubs when running the Traits tests. (It's fine to run the traits-stubs tests under pytest, but it needs to be done from the traits-stubs directory as a separate test run.)

Together with #1684 and #1683, this closes #1288.
mdickinson added a commit that referenced this pull request Aug 9, 2022
…tests (#1684)

This PR renames a mixin class and various other test-related classes to avoid Pytest trying to harvest test methods from those classes.

(cherry picked from commit 2da657b)
mdickinson added a commit that referenced this pull request Aug 9, 2022
This PR adds a pytest configuration to ignore traits-stubs when running the Traits tests. (It's fine to run the traits-stubs tests under pytest, but it needs to be done from the traits-stubs directory as a separate test run.)

Together with #1684 and #1683, this closes #1288.

(cherry picked from commit 18341f7)
mdickinson added a commit that referenced this pull request Aug 9, 2022
…tests (#1684)

This PR renames a mixin class and various other test-related classes to avoid Pytest trying to harvest test methods from those classes.

(cherry picked from commit 2da657b)
mdickinson added a commit that referenced this pull request Aug 9, 2022
This PR adds a pytest configuration to ignore traits-stubs when running the Traits tests. (It's fine to run the traits-stubs tests under pytest, but it needs to be done from the traits-stubs directory as a separate test run.)

Together with #1684 and #1683, this closes #1288.

(cherry picked from commit 18341f7)
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.

None yet

2 participants