Replies: 2 comments
-
|
Can you show us the exact error message (and ideally |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@The-Compiler , Thanks very much for this reply, My original code in new conftest.py 👇 from core.api.gitlab.Namespace import NamespaceThis will cause the ImportError ImportError while loading conftest '/Users/tom/code/python3/myapi/test_case/gitlab/conftest.py'.
test_case/gitlab/conftest.py:5: in <module>
from core.api.gitlab.namespace import Namespaceand I change this code to 👇 : from core import apiit works, so I think the root cause maybe the relative import. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys, my structure is as
And I want to set the module level fixture for test_case, and my project's structure change to
And there is an
ImporErrorappears in the new conftest. I also tried append sys path, insert sys path. Does not work. Could you guys please give me another solution?Beta Was this translation helpful? Give feedback.
All reactions