Пример #1
0
def new_set(set_):
    new_set_ = Set.where(name=set_)
    cards = Card.where(set=set_)
    for card in cards:
        input_card(card)
Пример #2
0
    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)
Пример #3
0
def fetch_expanded():
    sets = Set.where(expandedLegal=True)
    return get_cards_from_sets(sets)
Пример #4
0
 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)
Пример #5
0
def fetch_standard():
    sets = Set.where(standardLegal=True)
    return get_cards_from_sets(sets)