mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-09-25 05:34:30 -07:00
Tests: now autoload tests from /worlds/*/test (#1318)
Co-authored-by: black-sliver <[email protected]>
This commit is contained in:
co-authored by
black-sliver
parent
ec45479c52
commit
2dcfbff751
@@ -0,0 +1,13 @@
|
||||
from worlds.alttp.Shops import shop_table
|
||||
from test.TestBase import TestBase
|
||||
|
||||
|
||||
class TestSram(TestBase):
|
||||
def testUniqueOffset(self):
|
||||
sram_ids = set()
|
||||
for shop_name, shopdata in shop_table.items():
|
||||
for x in range(3):
|
||||
new = shopdata.sram_offset + x
|
||||
with self.subTest(shop_name, slot=x + 1, offset=new):
|
||||
self.assertNotIn(new, sram_ids)
|
||||
sram_ids.add(new)
|
||||
Reference in New Issue
Block a user