aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_remote.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_remote.py')
-rw-r--r--tests/test_remote.py5
1 files changed, 5 insertions, 0 deletions
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", []),