Refine ranch tree, growth sync and monitoring policies
This commit is contained in:
@@ -19,6 +19,9 @@ def scenario():
|
||||
# One ordinary stage, one not fully passed, one special activity.
|
||||
catalog.data["stage_info"] = {k: catalog.data["stage_info"][k] for k in ("0101", "0102", "bd00")}
|
||||
snapshot = demo_snapshot(catalog)
|
||||
for mon in snapshot.raw["monsters"]:
|
||||
if mon.get("process") == 2:
|
||||
mon["mode"] = snapshot.expected_growth_mode(mon, catalog)
|
||||
snapshot.raw["history"].update(unlockStage={"0101": ["1", "2", "3"], "0102": ["1"], "bd00": ["1", "2", "3"]},
|
||||
passStage={"0101": ["1", "2", "3"], "0102": ["1"], "bd00": ["1", "2", "3"]})
|
||||
snapshot.raw["teams"] = [{"teamName": "teamA", "teamType": "battleTeam", "monsters": [900, 0]}]
|
||||
@@ -241,13 +244,11 @@ class ActivityGuiTests(unittest.TestCase):
|
||||
self.assertEqual(settings["sweep_policy"]["rules"]["0101"]["limit"], 12)
|
||||
window.resize(1100, 650)
|
||||
window.show()
|
||||
window.tabs.setCurrentWidget(window.capture_scroll)
|
||||
window.tabs.setCurrentWidget(window.automation_page)
|
||||
window.automation_tabs.setCurrentWidget(window.policy_scroll)
|
||||
window.log_splitter.setSizes([180, 450])
|
||||
self.app.processEvents()
|
||||
table_rect = window.capture_rows.geometry()
|
||||
next_button = next(b for b in window.capture_page_widget.findChildren(W.QPushButton) if b.text() == "检查已保存截图")
|
||||
self.assertGreater(next_button.geometry().top(), table_rect.bottom())
|
||||
self.assertGreater(window.capture_scroll.verticalScrollBar().maximum(), 0)
|
||||
self.assertGreater(window.policy_scroll.verticalScrollBar().maximum(), 0)
|
||||
self.assertEqual(window.styleSheet(), "")
|
||||
finally:
|
||||
window.close()
|
||||
|
||||
Reference in New Issue
Block a user