feat: include localized genres and tags in snapshot
CI / test (push) Successful in 28s

This commit is contained in:
strsv committed 2026-11-09 09:25:06 +03:00
1 parent 48e89f85e4
commit dad2e768c1
2 files changed
+18 -6

No files matched your search

+2
View File
@@ -93,6 +93,8 @@ class ExportSnapshotTests(unittest.TestCase):
by_id = {item["appid"]: item for item in catalog}
self.assertEqual(by_id[1]["tags"], ["RPG", "Story Rich"])
self.assertEqual(by_id[1]["genres"], ["Adventure", "RPG"])
self.assertEqual(by_id[1]["genres_ru"], ["Приключенческие игры", "Ролевые игры"])
self.assertEqual(len(by_id[1]["tags_ru"]), len(by_id[1]["tags"]))
self.assertEqual(by_id[1]["details"]["developers"], "Dev")
self.assertEqual(by_id[1]["translation"]["lang"], "ru")
self.assertEqual(by_id[1]["hltb"]["main"], 10.0)