test: report cwd in order-sensitivity runner

This commit is contained in:
Alexandre Teixeira
2026-06-11 19:47:03 +01:00
parent ecb9e7f2cf
commit 10f7c8e458
3 changed files with 49 additions and 6 deletions
+7
View File
@@ -125,6 +125,13 @@ def test_explicit_seed_is_printed_with_repro_command(capsys):
assert f"reproduce with: {repro}" in out
def test_working_directory_is_reported(capsys, monkeypatch, tmp_path):
monkeypatch.chdir(tmp_path)
run(["--seed", "123", "--", "-q"], pytest_main=_FakePytestMain())
out = capsys.readouterr().out
assert f"[order-report] working directory: {tmp_path}" in out
def test_footer_repeats_seed_and_outcome(capsys):
run(["--seed", "123", "--", "-q"], pytest_main=_FakePytestMain(returncode=1))
out = capsys.readouterr().out