Spaces:
Sleeping
Sleeping
| 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() | |