How pytest resolves import #12642
Unanswered
michaelx1999
asked this question in
Q&A
Replies: 2 comments
-
I answered the same question already on stackoverflow, here: |
Beta Was this translation helpful? Give feedback.
0 replies
-
you should run under root,otherwise add roo |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Here is my folder structure
When I run pytest inside /root or /root/tests, I get the error message "cannot import module app".
I change the folder structure to this and everything works fine.
Beta Was this translation helpful? Give feedback.
All reactions