def new_set(set_): new_set_ = Set.where(name=set_) cards = Card.where(set=set_) for card in cards: input_card(card)
def test_where_filters_on_name(self): with vcr.use_cassette('fixtures/filtered_sets.yaml'): sets = Set.where(q='name:steam') self.assertEqual(1, len(sets)) self.assertEqual('xy11', sets[0].id)
def fetch_expanded(): sets = Set.where(expandedLegal=True) return get_cards_from_sets(sets)
def test_where_filters_on_name(self): with vcr.use_cassette('fixtures/filtered_sets.yaml'): sets = Set.where(name='steam') self.assertEqual(1, len(sets)) self.assertEqual('xy11', sets[0].code)
def fetch_standard(): sets = Set.where(standardLegal=True) return get_cards_from_sets(sets)