Fixtures and Temporary Files
A pytest fixture builds the setup several tests share and hands each test a fresh copy, tmp_path gives each test its own empty folder to write files in, and capsys lets a test read what a function printed.
Updated

- Category
- Python
- Level
- Journeyman
- Tags
- capsys, python, Test Fixture (python), Test Isolation, tmp_path