-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Test method collection does not follow documentation's naming convention. #8094
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
Comments
The docs you've pointed out seems to be for some quite old version ( I don't see any branch for the version of the docs you've linked to, I guess it is some leftover on readthedocs. |
Thanks for figuring that out, @aklajnert fyi when I search anything related to "pytest naming conventions" the outdated doc is the first result, if anyone plans to remove the page. |
Yeah recently we had a few cases of misunderstandings because of old links. Usually we only really keep two docs up-to-date, which is What should we do with old documentation pages? Btw the docs mentioned in the original issue are quite old, from the |
Closing this for now, #8098 is a follow up. |
Thanks @aklajnert for figuring it out quickly! |
pytest: 6.1.2
python: 3.6.8
The documentation indicates that naming must follow:
But in my example:
if I call:
both functions get collected even though first ones name starts with
tester_
If this the accepted functionality, I think that the documentation should be updated to indicate that it will collect it if it starts with
test
and nottest_
The text was updated successfully, but these errors were encountered: