How to use temporary directories and files in tests - pytest documentation

docs.pytest.org docs.pytest.org