okami.mom/strata

git clone https://git.nkp.pet/okami.mom/strata

Niko1221Merge main (87dfca0e7) into f-own-int: the 0.2.14 app branch, fixtures and CI fixes, the Qwen4-readiness tools, the shape-engine build scriptsffb3d9b31

main
920 B16 linesraw
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):
8    model = engine_update.RunningModel("launch-qwen", "qwen3.8-flash-next-iq3_s", "ready", 18434, "launch")
9    monkeypatch.setattr(engine_update, "running_models", lambda serving=None: [model])
10    gate = engine_update.ModelGate(ask=None)
11    with pytest.raises(updater.UpdateError) as caught:
12        gate.consent([{"profile": "launch-qwen", "state": "ready"}], "It would update the Control 0.1.59 -> 0.1.59.1.")
13    text = str(caught.value)
14    assert "is running, and the update needs it stopped, so nothing was changed." in text
15    assert "engine update" not in text
16    assert caught.value.exit_code == 7