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

Add __init__.py files for pytest-cov discovery #1013

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

arhall0
Copy link
Collaborator

@arhall0 arhall0 commented Feb 20, 2025

Noticed when looking at #977 that some files are not being discovered by pytest-cov giving an artificially high line coverage. Adding __init__.py files to all the module folders forces pytest-cov to check files for coverage.

If there is some reason not to add these or if I missed locations that pytest-cov should check let me know.

@arhall0 arhall0 self-assigned this Feb 20, 2025
@arhall0 arhall0 force-pushed the add-inits-for-pytest-cov branch from c5eae61 to 1cc29ad Compare February 21, 2025 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant