We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2d9c30 commit 2b7922dCopy full SHA for 2b7922d
1 file changed
tests/test_cli.py
@@ -72,8 +72,9 @@ def test_cli_with_stdout_output() -> None:
72
# ─── core expectations (stdout) ────────────────────────────────────-
73
assert result.exit_code == 0, f"CLI exited with code {result.exit_code}, stderr: {result.stderr}"
74
assert "---" in result.stdout, "Expected file separator '---' not found in STDOUT"
75
- assert "src/gitingest/__main__.py" in result.stdout, (
76
- "Expected content (e.g., src/gitingest/__main__.py) not found in STDOUT"
+ expected_path = str(Path(main.__module__.__file__).relative_to(Path.cwd()))
+ assert expected_path in result.stdout, (
77
+ f"Expected content (e.g., {expected_path}) not found in STDOUT"
78
)
79
assert not output_file.exists(), f"Output file {output_file} was unexpectedly created."
80
0 commit comments