I have a project arranged like so:
Project
└── test
├── main.py
│
└── x.py
│
└── y.py
I try to run the tests by executing python -m test.main.py
from the project directory, but I get an error that says ModuleNotFoundError: No module named x
.
main.py
contains:
from x import c, k
import y
Why do I get this error, and how can I fix it?