mirror of
https://github.com/elder-plinius/OBLITERATUS.git
synced 2026-08-18 00:47:23 +02:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user