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 for PytestCollectionWarning: cannot collect test class because it… #1249

Merged
merged 4 commits into from
Jan 8, 2025

Conversation

noopurintel
Copy link
Contributor

@noopurintel noopurintel commented Jan 8, 2025

… has a init constructor

If a class starts with Test, pytest tries to find tests inside the class and throws warnings when not found.

For e.g. check this:

image

This PR aims to prevent the same, by adding __test__ = False in such classes.

Also, the common fixtures file is now split into task runner and workflow specific files for better management.

Successful run of the related workflow with no PytestCollectionWarning - https://github.com/securefederatedai/openfl/actions/runs/12664983812/job/35293956709#step:5:1336

… has a __init__ constructor

Signed-off-by: noopur <noopur@intel.com>
@noopurintel noopurintel marked this pull request as ready for review January 8, 2025 05:51
Signed-off-by: noopur <noopur@intel.com>
@theakshaypant theakshaypant merged commit 52c0ba8 into securefederatedai:develop Jan 8, 2025
25 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.

3 participants