aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_gui.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_gui.py')
-rw-r--r--tests/test_gui.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/test_gui.py b/tests/test_gui.py
index aa9c03b..69f3a69 100644
--- a/tests/test_gui.py
+++ b/tests/test_gui.py
@@ -29,7 +29,7 @@ import unittest # noqa: E402
ROOT = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..")
sys.path.insert(0, ROOT)
-from PyQt6.QtCore import QCoreApplication, QEvent, QObject, QPointF, QProcess, pyqtSignal # noqa: E402
+from PyQt6.QtCore import QCoreApplication, QEvent, QObject, QPointF, QProcess, Qt, pyqtSignal # noqa: E402
from PyQt6.QtGui import QColor # noqa: E402
from PyQt6.QtWidgets import QApplication # noqa: E402
@@ -475,6 +475,16 @@ 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
+ self.assertEqual(sorted(tab.checked()), ["curl", "nuclei"])
+ tab.check_rows(False)
+ self.assertEqual(tab.checked(), [])
+ tab.chips["current"].setChecked(False)
+ tab.check_rows(True)
+ 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.no_dl.setChecked(True)
tab.update_selected()
self.assertIn(("job-start", "hint-update", "nuclei=3.12.0", "--no-dl"), remote.calls)