Framework Mode - monkeypatch.delattr
Folder Structure for pytest Framework
project-root/
├── tests/
│ ├── test_module1.py
│ ├── test_module2.py
│ └── __init__.py
├── src/
│ ├── module1.py
│ └── module2.py
├── conftest.py
├── pytest.ini
└── requirements.txt
This is a simple pytest project structure. tests/ holds test files. src/ holds application code. conftest.py contains shared fixtures and hooks.