aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-20 11:41:11 +0200
committerDanilo M. <danix@danix.xyz>2026-10-20 11:41:11 +0200
commitdddf9edde7ad89ba358af482e7206749d9e16426 (patch)
tree1172671b7efff9182f3938d82a5ba13a289735bd /tests
parent48cbd81a2c674b7d65a82f986ed7ad12e2f6869f (diff)
downloadsb-builder-dddf9edde7ad89ba358af482e7206749d9e16426.tar.gz
sb-builder-dddf9edde7ad89ba358af482e7206749d9e16426.zip
Packages: Build/Update/Rebuild/Remove act on ticked packages only
The highlighted row used to stand in when nothing was ticked; with row clicks toggling the tick, that ran an action on a row just unticked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/test_gui.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_gui.py b/tests/test_gui.py
index b326ee1..d45fffd 100644
--- a/tests/test_gui.py
+++ b/tests/test_gui.py
@@ -405,7 +405,11 @@ class SmokeTest(unittest.TestCase):
self.assertEqual(tab.model.checked, set())
tab.table.setCurrentIndex(tab.proxy.index(1, 1))
self.assertIn("<s>x</s>", tab.detail.text())
+ tab.act("update") # highlighted but not ticked: nothing
+ self.assertEqual(started, [])
+ tab.model.checked.add("foo")
tab.act("update")
+ tab.model.checked.clear()
select, clear = tab.keys
select.activated.emit()
self.assertEqual(len(tab.model.checked), 4)