Framework Mode - Temporary directory management
Folder Structure
tests/
├── test_example.py
├── conftest.py
└── resources/
└── sample_data.txt
# Temporary directories are managed by pytest fixtures, no special folder needed
tests/
├── test_example.py
├── conftest.py
└── resources/
└── sample_data.txt
# Temporary directories are managed by pytest fixtures, no special folder needed
tests/ folder.conftest.py to provide temporary directories using tmp_path or tmp_path_factory.tests/resources/.tmp_path fixture for temporary directory management in tests.tmp_path_factory fixture to create isolated folders.pytest.ini or pyproject.toml for test discovery and markers.os.environ if needed for dynamic paths.pytest-html to generate detailed HTML reports.pytest --html=report.html.tmp_path or tmp_path_factory for temporary directories to ensure isolation and automatic cleanup.tmp_path_factory, use meaningful names for easier debugging.Where in this framework structure would you add a new fixture that creates a temporary directory with some default files for testing?