From be69467c2caefddc1f04d5be71d36f6b8d9c13d3 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 21 Oct 2026 10:32:55 +0200 Subject: sbb-remote 0.11.0: rebuild-tree job (phase 3) New job kind rebuild-tree runs slackrepo_setup_SBo-danix.sh, which now builds the fresh tree beside the live one and swaps it in. The Jobs tab gets a Rebuild tree action behind a modal confirm. Co-Authored-By: Claude Opus 5.5 --- tests/test_remote.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/test_remote.py') diff --git a/tests/test_remote.py b/tests/test_remote.py index 3ac584a..44d3a90 100644 --- a/tests/test_remote.py +++ b/tests/test_remote.py @@ -177,6 +177,11 @@ class KindsTest(Base): with self.assertRaises(sbb.Error): sbb.KINDS["publish"](self.cfg, ["x"]) + def test_rebuild_tree(self): + self.assertEqual(sbb.KINDS["rebuild-tree"](self.cfg, []), (["slackrepo_setup_SBo-danix.sh"], {})) + with self.assertRaises(sbb.Error): + sbb.KINDS["rebuild-tree"](self.cfg, ["--yes"]) + def test_rejects_bad_args(self): for kind, args in (("sbpull", ["evil", "--no"]), ("sbpull", ["personal"]), ("sbpull", ["personal", "--force"]), ("sbshadow", []), -- cgit v1.2.3