Update Healer Man server
This commit is contained in:
1 parent
1fedb9368d
commit
cc3b2fa4d5
27 files changed
+1988
-83
No files matched your search
@@ -6,6 +6,7 @@ from scripts.balance_lab import (
|
||||
automatic_parties,
|
||||
coverage_parties,
|
||||
random_party,
|
||||
random_party_capacity,
|
||||
readiness_eligible_builds,
|
||||
resolve_build,
|
||||
runtime_session_command,
|
||||
@@ -89,6 +90,19 @@ class BalanceLabControllerTests(unittest.TestCase):
|
||||
"tank", "healer", "damage", "damage", "damage",
|
||||
])
|
||||
|
||||
def test_automatic_parties_cap_to_the_unique_ready_pool(self) -> None:
|
||||
builds = [
|
||||
{"id": "ready-tank", "source": "wow", "role": "tank", "defaultTalentBuild": True},
|
||||
{"id": "ready-healer", "source": "wow", "role": "healer", "defaultTalentBuild": True},
|
||||
*({"id": f"ready-damage-{index}", "source": "wow", "role": "damage", "defaultTalentBuild": True}
|
||||
for index in range(3)),
|
||||
{"id": "testing-tank-alt", "source": "wow", "role": "tank", "defaultTalentBuild": False},
|
||||
]
|
||||
self.assertEqual(random_party_capacity(builds), 1)
|
||||
configurations = automatic_parties(builds, ("wow",), 10, 29)
|
||||
self.assertEqual(len(configurations), 1)
|
||||
self.assertEqual(len({member["id"] for member in configurations[0]["party"]}), 5)
|
||||
|
||||
def test_coverage_parties_include_every_build_with_minimum_unique_parties(self) -> None:
|
||||
builds = [
|
||||
{"id": "tank-a", "source": "wow", "role": "tank"},
|
||||
|
||||
Reference in new issue
Block a user