-
Notifications
You must be signed in to change notification settings - Fork 706
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into test-groups-not-empty
- Loading branch information
Showing
2 changed files
with
22 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from unittest import TestCase | ||
from .. import SoEWorld | ||
|
||
|
||
class TestMapping(TestCase): | ||
def test_atlas_medallion_name_group(self) -> None: | ||
""" | ||
Test that we used the pyevermizer name for Atlas Medallion (not Amulet) in item groups. | ||
""" | ||
self.assertIn("Any Atlas Medallion", SoEWorld.item_name_groups) | ||
|
||
def test_atlas_medallion_name_items(self) -> None: | ||
""" | ||
Test that we used the pyevermizer name for Atlas Medallion (not Amulet) in items. | ||
""" | ||
found_medallion = False | ||
for name in SoEWorld.item_name_to_id: | ||
self.assertNotIn("Atlas Amulet", name, "Expected Atlas Medallion, not Amulet") | ||
if "Atlas Medallion" in name: | ||
found_medallion = True | ||
self.assertTrue(found_medallion, "Did not find Atlas Medallion in items") |