Improve task filters, exploration rewards and V4 battle simulation

This commit is contained in:
AttilaNet
2026-11-10 14:09:53 +08:00
parent 5082c2df5c
commit 6d74730735
20 changed files with 1129 additions and 42 deletions
@@ -535,6 +535,8 @@ class ProgressionGuiTests(unittest.TestCase):
tasks.assert_not_called()
records.assert_not_called()
window.set_presentation_active(True)
window.progression_filter.setCurrentIndex(window.progression_filter.findData(""))
window.progression_state_filter.setCurrentIndex(window.progression_state_filter.findData(""))
self.wait(window, lambda: window.progression_table.rowCount() == 4)
self.assertTrue(all(thread != self.app.thread() for thread in threads))
self.assertEqual(tasks.call_count, 1)
@@ -610,6 +612,8 @@ class ProgressionGuiTests(unittest.TestCase):
self.wait(window)
self.mock_readers(window)
window.tabs.setCurrentWidget(window.progression_page)
window.progression_filter.setCurrentIndex(window.progression_filter.findData(""))
window.progression_state_filter.setCurrentIndex(window.progression_state_filter.findData(""))
self.wait(window, lambda: window.progression_table.rowCount() == 4)
for kind, expected in (("mainline", "主线测试"), ("sidequest", "支线测试"), ("commission", "委托测试"), ("unknown", "未知测试")):
window.progression_filter.setCurrentIndex(window.progression_filter.findData(kind))