File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -72,8 +72,9 @@ def test_cli_with_stdout_output() -> None:
72
72
# ─── core expectations (stdout) ────────────────────────────────────-
73
73
assert result .exit_code == 0 , f"CLI exited with code { result .exit_code } , stderr: { result .stderr } "
74
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"
75
+ expected_path = str (Path (main .__module__ .__file__ ).relative_to (Path .cwd ()))
76
+ assert expected_path in result .stdout , (
77
+ f"Expected content (e.g., { expected_path } ) not found in STDOUT"
77
78
)
78
79
assert not output_file .exists (), f"Output file { output_file } was unexpectedly created."
79
80
You can’t perform that action at this time.
0 commit comments