scryfall seems to now give a list frame_effects rather than a single frame_effect
This commit is contained in:
parent
06c5ab6e3a
commit
9fd74649bf
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue