aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_gui.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/test_gui.py b/tests/test_gui.py
index 69f3a69..891584b 100644
--- a/tests/test_gui.py
+++ b/tests/test_gui.py
@@ -402,6 +402,11 @@ class SmokeTest(unittest.TestCase):
tab.table.setCurrentIndex(tab.proxy.index(1, 1))
self.assertIn("<s>x</s>", tab.detail.text())
tab.act("update")
+ select, clear = tab.keys
+ select.activated.emit()
+ self.assertEqual(len(tab.model.checked), 4)
+ clear.activated.emit()
+ self.assertEqual(tab.model.checked, set())
tab.model.checked.update({"nuclei", "curl"})
tab.act("build")
tab.update_all()
@@ -475,9 +480,11 @@ class SmokeTest(unittest.TestCase):
tab.chips["current"].setChecked(True)
visible = [tab.table.item(i, 1).text() for i in range(3) if not tab.table.isRowHidden(i)]
self.assertEqual(visible, ["curl"])
- tab.check_rows(True) # visible only: curl, under the "current" chip
+ select, clear = tab.keys
+ self.assertEqual((select.key().toString(), clear.key().toString()), ("Ctrl+A", "Ctrl+Shift+A"))
+ select.activated.emit() # visible only: curl, under the "current" chip
self.assertEqual(sorted(tab.checked()), ["curl", "nuclei"])
- tab.check_rows(False)
+ clear.activated.emit()
self.assertEqual(tab.checked(), [])
tab.chips["current"].setChecked(False)
tab.check_rows(True)