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']
|
return self.scryfallJson['frame']
|
||||||
|
|
||||||
def frame_effect(self):
|
def frame_effects(self):
|
||||||
"""The card's frame effect, if any. (miracle, nyxtouched, etc.)
|
"""The card's frame effect, if any. (miracle, nyxtouched, etc.)
|
||||||
|
|
||||||
Returns:
|
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):
|
def full_art(self):
|
||||||
"""Returns True if the card is considered full art
|
"""Returns True if the card is considered full art
|
||||||
|
|
|
@ -240,8 +240,8 @@ class TestSearch(unittest.TestCase):
|
||||||
def test_tcgplayer_id(self):
|
def test_tcgplayer_id(self):
|
||||||
self.assertIsInstance(non_online_card.tcgplayer_id(), int)
|
self.assertIsInstance(non_online_card.tcgplayer_id(), int)
|
||||||
|
|
||||||
def test_frame_effect(self):
|
def test_frame_effects(self):
|
||||||
self.assertIsInstance(transform.frame_effect(), str)
|
self.assertIsInstance(transform.frame_effects(), list)
|
||||||
|
|
||||||
def test_games(self):
|
def test_games(self):
|
||||||
self.assertIsInstance(non_online_card.games(), list)
|
self.assertIsInstance(non_online_card.games(), list)
|
||||||
|
|
Loading…
Reference in New Issue