0
I have a project with the following structure:
__init__.py
setup.py
- convert_keys/
- __init__.py
- convert.py
- tests/
- test_convert_keys.py
Inside my file of tests
I tried to import the following way;
from convert_keys import convert
but while trying to run the test file the error below appears;
python tests/test_convert_keys.py
Traceback (Most recent call last): File "tests/test_convert_keys.py", line 3, in from convert_keys import Convert Import: No module named convert_keys
My test file has only one class that inherits unittest.TestCase
, what is missing for that file inside tests
can import the file into convert_keys
?
the structure is exactly what I put in the question friend.
– RFL
opa, I ended up not being clear... I was talking about the contents of the archives
__init__.py
,setup,py
and things like this -- paths reset withinsetup.py
, defining how to load the modules into__init__.py
etc..– Giovanni Nunes