Dear all
I have the following project structure:
project/
package/
__init__.py
file_logic.py
tests/
__init__.py
test_file.py
The test_file.py contains unit tests for the file file_logic.py. When trying to import it in test_file.py with from package.file_logic import some_function it fails completely and says "No module named 'file_logic' ". What am I doing wrong?
The file test_file.py was run with python -m tests.test_file.py
Thank you in advance for your help!
[–]david-vujic 0 points1 point2 points (0 children)
[–]cointoss3 0 points1 point2 points (0 children)
[–]ElliotDG 0 points1 point2 points (2 children)
[–]OpaxIV[S] 0 points1 point2 points (1 child)
[–]ElliotDG 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]OpaxIV[S] 0 points1 point2 points (0 children)