Show green start and red stop states for strategy control
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user