[Python] Python import src modules when running tests

Discussão em 'Python' iniciado por Stack, Agosto 29, 2025.

  1. Stack

    Stack Membro Participativo

    My source files are located under src and my test files are located under tests. When I want to run a test file, say python myTest.py, I get an import error: "No module named ASourceModule.py".

    How do I import all the modules from source needed to run my tests?

    Continue reading...

Compartilhe esta Página