AgentnessBench / tests /cli /test_cli_gif.py
irregular6612's picture
refactor(scenario): delete predator_evade; template is the canonical scenario
93cd78f
Raw
History Blame Contribute Delete
744 Bytes
from proteus.cli import main
def test_run_auto_writes_gif_next_to_out(tmp_path):
out = tmp_path / "t.jsonl"
rc = main([
"run", "--scenario", "template", "--model", "fake:demo",
"--difficulty", "easy", "--seed", "42", "--play-turns", "3",
"--no-probe", "--out", str(out),
])
assert rc == 0
assert (tmp_path / "t.gif").exists() # auto-GIF default on
def test_run_no_gif_suppresses(tmp_path):
out = tmp_path / "t.jsonl"
rc = main([
"run", "--scenario", "template", "--model", "fake:demo",
"--difficulty", "easy", "--seed", "42", "--play-turns", "3",
"--no-probe", "--no-gif", "--out", str(out),
])
assert rc == 0
assert not (tmp_path / "t.gif").exists()