@@ -0,0 +1,775 @@
+from hearthstone.enums import GameTag, Rarity%0A%0Aimport utils%0A%0A%0Adef test_all_tags_known():%0A%09%22%22%22%0A%09Iterate through the card database and check that all specified GameTags%0A%09are known in hearthstone.enums.GameTag%0A%09%22%22%22%0A%09unknown_tags = set()%0A%09known_tags = list(GameTag)%0A%09known_rarities = list(Rarity)%0A%0A%09# Check the db loaded correctly%0A%09assert utils.fireplace.cards.db%0A%0A%09for card in utils.fireplace.cards.db.values():%0A%09%09card_tags = %5Bint(e.attrib%5B%22enumID%22%5D) for e in card.xml.findall(%22./Tag%22)%5D%0A%09%09for tag in card_tags:%0A%09%09%09# We have fake tags in fireplace.enums which are always negative%0A%09%09%09if tag not in known_tags and tag %3E 0:%0A%09%09%09%09unknown_tags.add(tag)%0A%0A%09%09# Test rarities as well (cf. TB_BlingBrawl_Blade1e in 10956...)%0A%09%09assert card.rarity in known_rarities%0A%0A%09assert not unknown_tags%0A

Add a test to verify that all GameTags are known