Create a temporary directory for tests.
()
| 88 | |
| 89 | @pytest.fixture |
| 90 | def temp_dir(): |
| 91 | """Create a temporary directory for tests.""" |
| 92 | dirpath = tempfile.mkdtemp() |
| 93 | yield dirpath |
| 94 | shutil.rmtree(dirpath, ignore_errors=True) |
| 95 | |
| 96 | |
| 97 | @pytest.fixture |
nothing calls this directly
no outgoing calls
no test coverage detected