From 13cd63567eee776be58810b8d3679b45e5693d58 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Thu, 15 Oct 2026 17:19:40 +0200 Subject: [PATCH] tests: first-run update test ignores the machine's own installed models --- tests/terminal/test_updater.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/terminal/test_updater.py b/tests/terminal/test_updater.py index 22ebef54..39637e69 100644 --- a/tests/terminal/test_updater.py +++ b/tests/terminal/test_updater.py @@ -358,7 +358,8 @@ class EngineUpdate(UpdaterCase): def test_first_run_installs_the_engine_for_this_pc_without_a_model(self): self.publish(("0.1.46", fx.GOOD_ENGINE)) - out = updater.run_update(self.ctx(run_config=None), control=False) + with mock.patch.object(updater, "discover_run_config", return_value=None): # whatever this machine has installed + out = updater.run_update(self.ctx(run_config=None), control=False) result = out["results"][0] self.assertEqual((out["exit_code"], result["status"]), (0, "updated"), out) self.assertEqual(result["test_start"]["mode"], "binary-only")