Test Windows console and path portability contracts

Cover legacy console fallbacks, platform temp paths, local UI disk probing, and lazy analysis exports. Bind the new local UI test to the executable source-to-test risk map.
This commit is contained in:
Joseph Magly
2026-08-15 03:13:27 -04:00
parent f82518ea13
commit ff0a298c6d
6 changed files with 132 additions and 2 deletions
+10
View File
@@ -58,6 +58,16 @@ def test_main_routes_remote_commands(monkeypatch, argv, target):
command.assert_called_once()
def test_tourney_default_output_uses_platform_temp_directory(monkeypatch, tmp_path):
command = Mock()
monkeypatch.setattr(cli, "_cmd_tourney", command)
monkeypatch.setattr(cli.tempfile, "gettempdir", lambda: str(tmp_path))
cli.main(["tourney", "local/model"])
assert command.call_args.args[0].output_dir == str(tmp_path / "obliteratus_tourney")
def test_refusal_max_tokens_cli_default_and_positive_override(monkeypatch):
command = Mock()
monkeypatch.setattr(cli, "_cmd_abliterate", command)