Framework Mode - Checking exception attributes
Folder Structure
tests/ ├── test_example.py ├── conftest.py utilities/ ├── helpers.py pytest.ini requirements.txt
tests/ ├── test_example.py ├── conftest.py utilities/ ├── helpers.py pytest.ini requirements.txt
test_example.py where tests are written using pytest syntax.conftest.py holds reusable fixtures and setup/teardown code.utilities/helpers.py to support tests.pytest.ini for pytest settings and options.pytest.ini to set default options like markers, test paths, and logging.conftest.py fixtures.pytest-html for detailed HTML reports.pytest.raises() as a context manager to catch exceptions.as exc_info to check attributes like message or custom fields.Where would you add a new test that verifies a custom attribute of a raised exception in this framework structure?