Update Healer Man server

This commit is contained in:
phenom committed 2026-09-20 21:50:50 -04:00
1 parent fdb6739f8d
commit f90ba7d989
41 files changed
+1671 -118

No files matched your search

+18 -3
View File
@@ -141,7 +141,7 @@ class BalanceLabControllerTests(unittest.TestCase):
self.assertTrue(set(selected).issubset(covered))
self.assertTrue(all(observed.count(build_id) == 1 for build_id in selected))
def test_readiness_filters_only_wow_and_beta_requires_opt_in(self) -> None:
def test_readiness_filters_every_source_and_beta_requires_opt_in(self) -> None:
builds = [
{"id": "ready-tank", "source": "wow", "specializationId": "warrior:protection"},
{"id": "beta-damage", "source": "wow", "specializationId": "paladin:retribution"},
@@ -155,11 +155,11 @@ class BalanceLabControllerTests(unittest.TestCase):
}}}
self.assertEqual(
[build["id"] for build in readiness_eligible_builds(builds, policy, False)],
["ready-tank", "rom-damage"],
["ready-tank"],
)
self.assertEqual(
[build["id"] for build in readiness_eligible_builds(builds, policy, True)],
["ready-tank", "beta-damage", "rom-damage"],
["ready-tank", "beta-damage"],
)
def test_targeted_needs_testing_build_uses_ready_fillers(self) -> None:
@@ -178,6 +178,21 @@ class BalanceLabControllerTests(unittest.TestCase):
self.assertIn("testing-shadow", ids)
self.assertTrue(all(build_id == "testing-shadow" or build_id.startswith("ready-") for build_id in ids))
def test_targeted_non_wow_build_uses_ready_wow_fillers(self) -> None:
ready = [
{"id": "ready-tank", "source": "wow", "role": "tank", "readinessStatus": "ready", "defaultTalentBuild": True},
{"id": "ready-healer", "source": "wow", "role": "healer", "readinessStatus": "ready", "defaultTalentBuild": True},
*(
{"id": f"ready-damage-{index}", "source": "wow", "role": "damage", "readinessStatus": "ready", "defaultTalentBuild": True}
for index in range(3)
),
]
target = {"id": "coa-target", "source": "coa", "role": "damage", "readinessStatus": "needs-testing", "defaultTalentBuild": True}
parties = coverage_parties([*ready, target], ("coa",), ["coa-target"], 21, ready)
ids = [member["id"] for member in parties[0]["party"]]
self.assertIn("coa-target", ids)
self.assertEqual(sum(build_id.startswith("ready-") for build_id in ids), 4)
def test_boss_search_matches_name_dungeon_key_and_source(self) -> None:
bosses = [
{"key": "gundrak/eck", "name": "Eck the Ferocious", "dungeonTitle": "Gundrak", "category": "wow"},