scryfall seems to now give a list frame_effects rather than a single frame_effect

This commit is contained in:
Dylan Stephano-Shachter 2019-09-25 07:10:10 +03:00
parent 06c5ab6e3a
commit 9fd74649bf
2 changed files with 6 additions and 6 deletions

View File

@ -419,15 +419,15 @@ class CardsObject(FoundationObject):
return self.scryfallJson['frame']
def frame_effect(self):
def frame_effects(self):
"""The card's frame effect, if any. (miracle, nyxtouched, etc.)
Returns:
string: The card's frame effect.
list: The card's frame effects.
"""
super(CardsObject, self)._checkForKey('frame_effect')
super(CardsObject, self)._checkForKey('frame_effects')
return self.scryfallJson['frame_effect']
return self.scryfallJson['frame_effects']
def full_art(self):
"""Returns True if the card is considered full art

View File

@ -240,8 +240,8 @@ class TestSearch(unittest.TestCase):
def test_tcgplayer_id(self):
self.assertIsInstance(non_online_card.tcgplayer_id(), int)
def test_frame_effect(self):
self.assertIsInstance(transform.frame_effect(), str)
def test_frame_effects(self):
self.assertIsInstance(transform.frame_effects(), list)
def test_games(self):
self.assertIsInstance(non_online_card.games(), list)