Show green start and red stop states for strategy control

This commit is contained in:
AttilaNet
2026-11-08 15:22:52 +08:00
parent 3b5da7ebcb
commit 13a253a447
6 changed files with 26 additions and 12 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ class GuiTests(unittest.TestCase):
self.assertEqual(window.yields.rowCount(), 749)
self.assertEqual(window.styleSheet(), "")
buttons = {button.text() for button in window.findChildren(QPushButton)}
self.assertIn("开启策略", buttons)
self.assertIn("开启", buttons)
for removed in ("开始监控", "停止监控", "仅监控", "开始执行勾选功能", "停止执行",
"开始执行勾选策略", "开始扫荡", "停止扫荡", "开始每日事务", "停止每日事务"):
self.assertNotIn(removed, buttons)