The best way to run these tests is from the directory above this one. Run: pytest To run a specific test file: pytest tests/test_constructor.py