diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-20 11:39:21 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-20 11:39:21 +0200 |
| commit | 48cbd81a2c674b7d65a82f986ed7ad12e2f6869f (patch) | |
| tree | 818fbfb1bfe628d9b06c9a9a98a7aec257ddf94f /tests | |
| parent | 867e21f99361c0c566b268006b558ab08256824b (diff) | |
| download | sb-builder-48cbd81a2c674b7d65a82f986ed7ad12e2f6869f.tar.gz sb-builder-48cbd81a2c674b7d65a82f986ed7ad12e2f6869f.zip | |
Packages tab: a click anywhere on a row ticks or unticks it
Same as the Hints tab: the box is no longer user-checkable on its own and
one clicked handler toggles the row, so no click counts twice.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_gui.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_gui.py b/tests/test_gui.py index 8353441..b326ee1 100644 --- a/tests/test_gui.py +++ b/tests/test_gui.py @@ -399,6 +399,10 @@ class SmokeTest(unittest.TestCase): tab.start_requested.connect(started.append) tab.act("update") self.assertEqual(started, []) # nothing checked, no current row + tab.table.clicked.emit(tab.proxy.index(3, 2)) # a click on a row's values ticks it + self.assertEqual(tab.model.checked, {"curl"}) + tab.table.clicked.emit(tab.proxy.index(3, 0)) + 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") |
