From e6f90eb9ff852d8279485b7c8a68ef316ba0ae6e Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 20 Oct 2026 11:24:11 +0200 Subject: Hints tab: Select visible and Clear Same pair as the Packages tab: tick every row the chips and search leave visible, untick every row. Co-Authored-By: Claude Opus 5.5 --- tests/test_gui.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'tests') 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) -- cgit v1.2.3