py.test can't import my module
问题 I am struggeling getting a python import right. What I want to achieve is to have a module with several source files and a test folder with unit tests. No matter what I do, I can't get py.test-3 to execute my tests. My directory layout looks like this: . ├── module │ ├── __init__.py │ └── testclass.py └── tests └── test_testclass.py The __init__.py file looks like this: __all__ = ['testclass'] The testclass.py file looks like this: class TestClass(object): def __init__(self): self.id = 1 And