forked from ArchipelagoMW/Archipelago
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'refs/heads/main' into fork/per_game_datapackage
# Conflicts: # worlds/AutoWorld.py
- Loading branch information
Showing
32 changed files
with
544 additions
and
315 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import unittest | ||
|
||
from worlds.AutoWorld import AutoWorldRegister | ||
|
||
|
||
class TestWebDescriptions(unittest.TestCase): | ||
def test_item_descriptions_have_valid_names(self) -> None: | ||
"""Ensure all item descriptions match an item name or item group name""" | ||
for game_name, world_type in AutoWorldRegister.world_types.items(): | ||
valid_names = world_type.item_names.union(world_type.item_name_groups) | ||
for name in world_type.web.item_descriptions: | ||
with self.subTest("Name should be valid", game=game_name, item=name): | ||
self.assertIn(name, valid_names, | ||
"All item descriptions must match defined item names") | ||
|
||
def test_location_descriptions_have_valid_names(self) -> None: | ||
"""Ensure all location descriptions match a location name or location group name""" | ||
for game_name, world_type in AutoWorldRegister.world_types.items(): | ||
valid_names = world_type.location_names.union(world_type.location_name_groups) | ||
for name in world_type.web.location_descriptions: | ||
with self.subTest("Name should be valid", game=game_name, location=name): | ||
self.assertIn(name, valid_names, | ||
"All location descriptions must match defined location names") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.