Improve task filters, exploration rewards and V4 battle simulation
This commit is contained in:
@@ -111,6 +111,27 @@ class ExplorationGuiTests(unittest.TestCase):
|
||||
window.arm_extended_automation()
|
||||
self.assertAlmostEqual(window.next_explore, now + 61, places=2)
|
||||
|
||||
def test_active_snapshot_arms_claim_timer_when_restart_is_disabled(self):
|
||||
window = self.window
|
||||
snapshot = window.engine.snapshot
|
||||
snapshot.raw["exploreTeams"][0].update(
|
||||
status=1, area="1", monsters="1,2,3", endTime=(NOW + 60) * 1000)
|
||||
window.latest_render = (snapshot, [])
|
||||
window.monitoring = True
|
||||
window.set_strategy_checked(True)
|
||||
window.explore_enabled.setChecked(False)
|
||||
window.next_explore = float("inf")
|
||||
now = time.monotonic()
|
||||
with patch.object(gui.time, "monotonic", return_value=now):
|
||||
window.arm_extended_automation()
|
||||
self.assertAlmostEqual(window.next_explore, now + 61, places=2)
|
||||
|
||||
def test_explore_opt_in_labels_restart_and_top_stop_owns_claims(self):
|
||||
self.assertEqual(self.window.explore_enabled.text(), "自动安排再次探险(完成后自动领奖)")
|
||||
self.assertIn("顶部", self.window.explore_enabled.toolTip())
|
||||
self.assertIn("停止", self.window.explore_enabled.toolTip())
|
||||
self.assertIn("领奖", self.window.explore_enabled.toolTip())
|
||||
|
||||
def test_real_window_three_selections_and_busy_policy_queue(self):
|
||||
window = self.window
|
||||
window.refresh_exploration()
|
||||
|
||||
Reference in New Issue
Block a user