unittest directory structure – cannot import src code
unittest directory structure – cannot import src code Question: I have the following folder structure in my project: my-project src/ __init__.py script.py test/ __init__.py test_script.py Ideally I want to have a separate folder where all the unit tests go. My test_script.py looks something like this: from src.script import my_object class TestClass(unittest.TestCase): def test_script_object(self): # unit …