Framework Mode - Asserting exceptions (pytest.raises)
Folder Structure
test_project/ ├── tests/ │ ├── test_example.py # Test files using pytest │ └── test_exceptions.py # Tests specifically for exception handling ├── src/ │ └── example_module.py # Application code ├── conftest.py # Shared fixtures and hooks ├── pytest.ini # Pytest configuration file └── requirements.txt # Dependencies