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

pytest: Allow default test file naming patterns inside tests folders #4784

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

echoix
Copy link
Member

@echoix echoix commented Nov 28, 2024

To help out #4755 and also myself, that I worked-around in #4700 by renaming the file (p.s.: still waiting for feedback on the expected behaviour there)

This PR allows to use file names like shown in pytest docs here
https://docs.pytest.org/en/latest/reference/reference.html#confval-python_files, as long as it is inside a tests folder instead of anywhere. The only expected file name pattern currently is not as natural to me, requiring to end with _test.py.

@github-actions github-actions bot added the Python Related code is in Python label Nov 28, 2024
@echoix
Copy link
Member Author

echoix commented Nov 28, 2024

Oh, there are two tests that fail, that weren't collected before due to the expected behaviour not being the one implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Python Related code is in Python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant