We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acf1bd8 commit c1019a3Copy full SHA for c1019a3
src/pytest_plugins/filler/filler.py
@@ -1212,7 +1212,10 @@ def pytest_sessionfinish(session: pytest.Session, exitstatus: int):
1212
# * no tests were filled
1213
html_output_is_enabled = getattr(session.config.option, "htmlpath", None)
1214
if not html_output_is_enabled:
1215
- shutil.rmtree("fixtures")
+ # determine chosen fixtures output folder
1216
+ fixture_output_obj: FixtureOutput = FixtureOutput.from_config(session.config)
1217
+ fixture_output_folder: Path = fixture_output_obj.output_path
1218
+ shutil.rmtree(fixture_output_folder)
1219
1220
# Create tarball of the output directory if the output is a tarball.
1221
fixture_output.create_tarball()
0 commit comments