okami.mom/strata
git clone https://git.nkp.pet/okami.mom/strata
ffb3d9b31
main
1"""`strata update --yes` while a model serves: the refusal says "the update", not "an engine update" (only Control may be pending; ARCFIX E5, owner-approved 11-09).""" 2import pytest 3 4from strata_control import engine_update ,updater 5 6 7def test_the_refusal_names_the_update_not_an_engine_update (monkeypatch ): 8model = engine_update .RunningModel ("launch-qwen" ,"qwen3.8-flash-next-iq3_s" ,"ready" ,18434 ,"launch" ) 9monkeypatch .setattr (engine_update ,"running_models" ,lambda serving = None : [model ]) 10gate = engine_update .ModelGate (ask = None ) 11with pytest .raises (updater .UpdateError )as caught : 12gate .consent ([{"profile" :"launch-qwen" ,"state" :"ready" }],"It would update the Control 0.1.59 -> 0.1.59.1." ) 13text = str (caught .value ) 14assert "is running, and the update needs it stopped, so nothing was changed." in text 15assert "engine update" not in text 16assert caught .value .exit_code == 7