Expand achievement exports with progress and metadata
This commit is contained in:
parent
35918f24f1
commit
40b44521aa
17 changed files with 898 additions and 52 deletions
|
|
@ -1,4 +1,5 @@
|
|||
from tests.support import * # noqa: F401,F403
|
||||
from nte_history_exporter.mappings import ACHIEVEMENTS
|
||||
|
||||
|
||||
class MappingAndUpdateTests(unittest.TestCase):
|
||||
|
|
@ -79,6 +80,14 @@ class MappingAndUpdateTests(unittest.TestCase):
|
|||
self.assertIn("name", info)
|
||||
self.assertIn(info.get("rank"), ("S", "A"))
|
||||
|
||||
self.assertTrue(ACHIEVEMENTS)
|
||||
battle_25 = ACHIEVEMENTS["battle_25"]
|
||||
self.assertEqual(battle_25["name"], "Devil Within II")
|
||||
self.assertEqual(battle_25["target"], 50)
|
||||
self.assertEqual(
|
||||
battle_25["rewards"], [{"item_id": "Annulith", "amount": 10}]
|
||||
)
|
||||
|
||||
self.assertTrue(ITEMS)
|
||||
for item_id, info in ITEMS.items():
|
||||
with self.subTest(item_id=item_id):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue