Skip to content

Commit a16cd46

Browse files
committed
fix.
1 parent 48ba5c6 commit a16cd46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_collect.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ def task_example(path = {node}): ...
592592
tmp_path.joinpath("task_example.py").write_text(textwrap.dedent(source))
593593
result = runner.invoke(cli, [tmp_path.as_posix()])
594594
assert result.exit_code == ExitCode.COLLECTION_FAILED
595-
assert "only files are allowed" in result.output
595+
assert all(i in result.output for i in ("only", "files", "are", "allowed"))
596596

597597

598598
@pytest.mark.parametrize(
@@ -615,4 +615,4 @@ def task_example(path: Annotated[Any, Product] = {node}): ...
615615
tmp_path.joinpath("task_example.py").write_text(textwrap.dedent(source))
616616
result = runner.invoke(cli, [tmp_path.as_posix()])
617617
assert result.exit_code == ExitCode.COLLECTION_FAILED
618-
assert "only files are allowed" in result.output
618+
assert all(i in result.output for i in ("only", "files", "are", "allowed"))

0 commit comments

Comments
 (0)