mirror of
https://github.com/elder-plinius/OBLITERATUS.git
synced 2026-08-29 22:20:36 +02:00
test cli dispatch
This commit is contained in:
@@ -162,3 +162,19 @@ class TestMainCLI:
|
||||
sys.argv = old_argv
|
||||
|
||||
mock_check.assert_called_once()
|
||||
|
||||
@patch("obliteratus.capability_check._run_lm_eval")
|
||||
def test_cli_dispatch(self, mock_lm_eval, tmp_path):
|
||||
"""Test that 'obliteratus capability-check' dispatches correctly."""
|
||||
from obliteratus.cli import main as cli_main
|
||||
|
||||
mock_lm_eval.side_effect = [
|
||||
{"results": {"mmlu": {"acc,none": 0.81}}},
|
||||
{"results": {"mmlu": {"acc,none": 0.87}}},
|
||||
]
|
||||
|
||||
cli_main(["capability-check",
|
||||
"--abliterated", "fake/abl",
|
||||
"--stock", "fake/stock",
|
||||
"--device", "cpu",
|
||||
"--output-dir", str(tmp_path)])
|
||||
|
||||
Reference in New Issue
Block a user