Framework Mode - Why PyTest is the most popular Python testing framework
Folder Structure of a Typical PyTest Project
project-root/
├── tests/
│ ├── test_login.py
│ ├── test_user_profile.py
│ ├── conftest.py
│ └── fixtures.py
├── src/
│ └── app_code.py
├── pytest.ini
├── requirements.txt
└── README.md
This structure keeps tests separate from source code. conftest.py holds shared fixtures and hooks.