Framework Mode - caplog for log messages
Folder Structure
project-root/
├── tests/
│ ├── test_example.py
│ ├── conftest.py
│ └── utils.py
├── src/
│ └── app_code.py
├── pytest.ini
└── requirements.txt
This is a simple Pytest project structure. Test files go under tests/. The conftest.py holds fixtures and shared setup. Application code is in src/.