diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-20 11:37:25 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-20 11:37:25 +0200 |
| commit | 867e21f99361c0c566b268006b558ab08256824b (patch) | |
| tree | fa6a0c9a0ab8a8519d5b702a86d70bff727653b3 /tests/test_gui.py | |
| parent | d756256c775c754aed07f8c518b2b8f589ea2948 (diff) | |
| download | sb-builder-867e21f99361c0c566b268006b558ab08256824b.tar.gz sb-builder-867e21f99361c0c566b268006b558ab08256824b.zip | |
Hints tab: a click anywhere on a row ticks or unticks it
The box is no longer user-checkable on its own, so a click on it is not
counted twice; one cellClicked handler toggles every row click.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests/test_gui.py')
| -rw-r--r-- | tests/test_gui.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/test_gui.py b/tests/test_gui.py index 8a5b6e3..8353441 100644 --- a/tests/test_gui.py +++ b/tests/test_gui.py @@ -491,7 +491,12 @@ class SmokeTest(unittest.TestCase): self.assertEqual(len(tab.checked()), 3) tab.check_rows(False) tab.select("nuclei") - tab.table.item(tab.table.currentRow(), 0).setCheckState(Qt.CheckState.Checked) + tab.table.cellClicked.emit(tab.table.currentRow(), 2) # a click on the row's values + self.assertEqual(tab.checked(), ["nuclei"]) + tab.table.cellClicked.emit(tab.table.currentRow(), 1) + self.assertEqual(tab.checked(), []) + tab.table.cellClicked.emit(tab.table.currentRow(), 0) # the box column too + self.assertEqual(tab.checked(), ["nuclei"]) tab.no_dl.setChecked(True) tab.update_selected() self.assertIn(("job-start", "hint-update", "nuclei=3.12.0", "--no-dl"), remote.calls) |
