Skip to content

Commit ea2c2eb

Browse files
committed
fix(fill --collect-only): allow running fill --collect-only even when fixtures folder does not exist
1 parent b19b4ca commit ea2c2eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pytest_plugins/filler/filler.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,8 @@ def pytest_sessionfinish(session: pytest.Session, exitstatus: int):
793793
return
794794

795795
output: Path = session.config.getoption("output")
796-
if is_output_stdout(output):
796+
# When using --collect-only it should not matter whether fixtures folder exists or not
797+
if is_output_stdout(output) or session.config.option.collectonly:
797798
return
798799

799800
output_dir = strip_output_tarball_suffix(output)

0 commit comments

Comments
 (0)