mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
21 lines
671 B
Python
21 lines
671 B
Python
![]() |
import unittest
|
||
|
|
||
|
from ..items import load_item_csv
|
||
|
from ..locations import load_location_csv
|
||
|
|
||
|
|
||
|
class TestCsvIntegrity(unittest.TestCase):
|
||
|
def test_items_integrity(self):
|
||
|
items = load_item_csv()
|
||
|
|
||
|
for item in items:
|
||
|
assert item.code_without_offset is not None, \
|
||
|
"Some item do not have an id. Run the script `update_data.py` to generate them."
|
||
|
|
||
|
def test_locations_integrity(self):
|
||
|
locations = load_location_csv()
|
||
|
|
||
|
for location in locations:
|
||
|
assert location.code_without_offset is not None, \
|
||
|
"Some location do not have an id. Run the script `update_data.py` to generate them."
|