@@ -14,10 +14,17 @@ def test_list_prints_all_experiment_presets(capsys: pytest.CaptureFixture[str])
1414 assert exit_code == 0
1515 out = capsys .readouterr ().out .splitlines ()
1616 assert set (out ) == {
17+ "boltz" ,
18+ "boltz1" ,
19+ "boltz2" ,
20+ "boltz2_md" ,
21+ "boltz2_xrd" ,
1722 "full_8gpu" ,
23+ "protenix" ,
24+ "protenix_dual" ,
25+ "rf3" ,
1826 "rf3_partial" ,
1927 "rf3_partial_chiral_off" ,
20- "protenix_dual" ,
2128 "rf3_protenix" ,
2229 }
2330
@@ -69,6 +76,31 @@ def test_job_shortcut_filters_default_preset(
6976 assert "boltz2_md" not in out
7077
7178
79+ def test_model_target_uses_named_preset (
80+ monkeypatch : pytest .MonkeyPatch , capsys : pytest .CaptureFixture [str ]
81+ ) -> None :
82+ """A single model target resolves to the matching standalone preset."""
83+ monkeypatch .setenv ("HOME" , "/home/test" )
84+ exit_code = cli .main (["boltz" , "--show" ])
85+ assert exit_code == 0
86+ out = capsys .readouterr ().out
87+ assert "name: boltz" in out
88+ assert "name: boltz2_xrd" in out
89+ assert "name: boltz2_md" in out
90+
91+
92+ def test_boltz1_target_uses_named_preset (
93+ monkeypatch : pytest .MonkeyPatch , capsys : pytest .CaptureFixture [str ]
94+ ) -> None :
95+ """The Boltz1 model has its own standalone preset target."""
96+ monkeypatch .setenv ("HOME" , "/home/test" )
97+ exit_code = cli .main (["boltz1" , "--show" ])
98+ assert exit_code == 0
99+ out = capsys .readouterr ().out
100+ assert "name: boltz1" in out
101+ assert "output_subdir: boltz1" in out
102+
103+
72104def test_jobs_filters_explicit_preset (
73105 monkeypatch : pytest .MonkeyPatch , capsys : pytest .CaptureFixture [str ]
74106) -> None :
0 commit comments