aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_gui.py
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-20 20:21:34 +0200
committerDanilo M. <danix@danix.xyz>2026-10-20 20:21:34 +0200
commit91f882df97adea262625a45be0257039f144ae49 (patch)
treed7aee7910f79b63ac049579dcf56ce7b8b1b7b7b /tests/test_gui.py
parent552d8e5bb6ba6537b7031318bc5a8d7e92c971b4 (diff)
downloadsb-builder-91f882df97adea262625a45be0257039f144ae49.tar.gz
sb-builder-91f882df97adea262625a45be0257039f144ae49.zip
sbb-remote 0.9.0: SBo orphans tile on the Dashboard
stats gains "orphans", the packages whose .info says MAINTAINER="orphaned - no maintainer" (0.14s over the tree on the VM). The placeholder tile shows the count and opens Packages with only the orphaned chip on. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests/test_gui.py')
-rw-r--r--tests/test_gui.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_gui.py b/tests/test_gui.py
index beec1fe..d005447 100644
--- a/tests/test_gui.py
+++ b/tests/test_gui.py
@@ -358,6 +358,14 @@ class SmokeTest(unittest.TestCase):
self.assertEqual(w.conn.text(), "● VM off")
self.assertFalse(w.vm_btn.isHidden())
+ def test_orphans_tile_opens_filtered_packages(self):
+ w, _ = self.window(stats=(dict(STATS, orphans=1936), None))
+ w.poll_jobs()
+ self.assertEqual(w.dashboard.orphans.value.text(), "1,936")
+ w.dashboard.orphans.clicked.emit()
+ self.assertIs(w.tabs.currentWidget(), w.packages_tab)
+ self.assertEqual([n for n, c in w.packages_tab.chips.items() if c.isChecked()], ["orphaned"])
+
def test_slackpkg_dot(self):
old = dict(STATS, slackpkg={"update": None, "upgrade": 1})
w, _ = self.window(stats=(old, None))