Exemplo n.º 1
0
def test_alt_art_ertai(cdb):
    ertai1 = cdb.id_to_printing['08fcfee6a7c4eddcd44e43e918cbf9d479492fe7']
    ertai2 = cdb.id_to_printing['62ff415cafefac84a5bb7174cb7ef175c14625de']
    print_counts = {
        ertai1: {counts.CountTypes.foils: 5},
        ertai2: {counts.CountTypes.foils: 5},
    }
    ertai1_rows = deckbox.rows_for_printing(ertai1, print_counts)
    ertai2_rows = deckbox.rows_for_printing(ertai2, print_counts)
    assert list(ertai1_rows) != list(ertai2_rows)
Exemplo n.º 2
0
def test_rfp_promo(cdb):
    print_id = '6c9ffa9ffd2cf7e6f85c6be1713ee0c546b9f8fc'
    printing = cdb.id_to_printing[print_id]
    print_counts = {print_id: {
        counts.CountTypes.copies: 0,
        counts.CountTypes.foils: 5,
    }}
    rows = deckbox.rows_for_printing(printing, print_counts)
    assert list(rows) == [
        {
            'Count': 5,
            'Tradelist Count': 0,
            'Name': 'Black Sun\'s Zenith',
            'Edition': 'Magic Game Day Cards',
            'Card Number': 7,
            'Condition': 'Near Mint',
            'Language': 'English',
            'Foil': 'foil',
            'Signed': None,
            'Artist Proof': None,
            'Altered Art': None,
            'Misprint': None,
            'Promo': 'promo',
            'Textless': None,
            'My Price': None,
        },
    ]
Exemplo n.º 3
0
def test_rfp_split_second_half(cdb):
    print_id = '2eecf5001fe332f5dadf4d87665bcf182c5f24ee'
    printing = cdb.id_to_printing[print_id]
    print_counts = {print_id: {
        counts.CountTypes.copies: 3,
        counts.CountTypes.foils: 5,
    }}
    rows = deckbox.rows_for_printing(printing, print_counts)
    assert not list(rows)
Exemplo n.º 4
0
def test_rfp(cdb):
    # Setup
    print_id = 'c08c564300a6a6d3f9c1c1dfbcab9351be3a04ae'
    printing = cdb.id_to_printing[print_id]
    print_counts = {print_id: {
        counts.CountTypes.copies: 3,
        counts.CountTypes.foils: 5,
    }}
    rows = deckbox.rows_for_printing(printing, print_counts)
    assert list(rows) == [
        {
            'Count': 3,
            'Tradelist Count': 0,
            'Name': 'Boom // Bust',
            'Edition': 'Planar Chaos',
            'Card Number': 112,
            'Condition': 'Near Mint',
            'Language': 'English',
            'Foil': None,
            'Signed': None,
            'Artist Proof': None,
            'Altered Art': None,
            'Misprint': None,
            'Promo': None,
            'Textless': None,
            'My Price': None,
        },
        {
            'Count': 5,
            'Tradelist Count': 0,
            'Name': 'Boom // Bust',
            'Edition': 'Planar Chaos',
            'Card Number': 112,
            'Condition': 'Near Mint',
            'Language': 'English',
            'Foil': 'foil',
            'Signed': None,
            'Artist Proof': None,
            'Altered Art': None,
            'Misprint': None,
            'Promo': None,
            'Textless': None,
            'My Price': None,
        },
    ]