We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 438f99d commit 1b235ffCopy full SHA for 1b235ff
1 file changed
tests/conftest.py
@@ -4,18 +4,12 @@
4
5
@pytest.fixture(scope="session")
6
def test_output_dir():
7
- """
8
- Create and return the tests/output directory for test output files.
9
- This fixture creates the directory if it doesn't exist, cleans up any existing files
10
- for each test, and returns the Path object.
11
+ """Create and return the tests/output directory for test output files."""
12
output_dir = Path(__file__).parent / "output"
13
14
- # Clean up any existing files
15
if output_dir.exists():
16
shutil.rmtree(output_dir)
17
18
- # Create fresh directory
19
output_dir.mkdir(exist_ok=True)
20
21
return output_dir
0 commit comments