Conftest import error #13945
Unanswered
johnmiaoncs
asked this question in
Q&A
Replies: 1 comment 3 replies
-
|
Are you sure you added the Maybe try |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Thanks for the help in advance!
I have this project folder structure:
Notice that there are multiple conftest.py in the folders with the same name.
When I run pytest, the test discovery shows errors:
I have followed the doc's suggestion to add
__init__.pyat each folder but it does not seem to work.It's not critical but annoying, every time I want to run tests in AAA I will have to disable the BBB, as in VS Code
Is there a better way or I did something wrong in the config? (I can't rename the folders as it is a shared project)
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions