Tests: Move world dependencies in tests to APQuest #5668

This commit is contained in:
qwint
2025-11-25 12:26:37 -06:00
committed by GitHub
parent f9630fa13b
commit aa2774a5d5
2 changed files with 5 additions and 5 deletions

View File

@@ -44,19 +44,19 @@ class TestOptions(unittest.TestCase):
}],
[{
"name": "ItemLinkGroup",
"item_pool": ["Hammer", "Bow"],
"item_pool": ["Hammer", "Sword"],
"link_replacement": False,
"replacement_item": None,
}]
]
# we really need some sort of test world but generic doesn't have enough items for this
world = AutoWorldRegister.world_types["A Link to the Past"]
world = AutoWorldRegister.world_types["APQuest"]
plando_options = PlandoOptions.from_option_string("bosses")
item_links = [ItemLinks.from_any(item_link_groups[0]), ItemLinks.from_any(item_link_groups[1])]
for link in item_links:
link.verify(world, "tester", plando_options)
self.assertIn("Hammer", link.value[0]["item_pool"])
self.assertIn("Bow", link.value[0]["item_pool"])
self.assertIn("Sword", link.value[0]["item_pool"])
# TODO test that the group created using these options has the items

View File

@@ -2,8 +2,8 @@ description: Almost blank test yaml
name: Player{NUMBER}
game:
Timespinner: 1 # what else
APQuest: 1 # what else
requires:
version: 0.2.6
Timespinner: {}
APQuest: {}