project-root/
├── tests/
│ ├── test_example.py
│ └── __init__.py
├── src/
│ ├── module.py
│ └── __init__.py
├── conftest.py
├── requirements.txt
└── pytest.ini
This structure keeps test files separate from source code. tests/ holds test scripts using mocks.