예제 #1
0
def find_all_pathfinder_spells():
    campaign = PathfinderCampaign()
    spell_listfiles = campaign.find_spell_listfiles()
    spells = []

    for (lst, source) in spell_listfiles:
        spells = spells + parse_spells(lst, source)

    return spells
 def test_parse_spells_returns_list(self):
     ret = parser.parse_spells(self.test_spells)
     self.assertTrue(len(ret) > 0)
 def test_parse_spells_returns_list_of_spell_objects(self):
     ret = parser.parse_spells(self.test_spells)
     self.assertTrue(len(ret) > 0)
     self.assertIsInstance(ret[0], SpellParser)
 def test_parse_spells_returns_spell_objects(self):
     ret = parser.parse_spells(self.test_spells)
     self.assertIsInstance(ret, list)