コード例 #1
0
ファイル: test_csv.py プロジェクト: TonyRoomZ/mtg_ssm
def test_rows_for_printings_terse(cdb):
    print_counts = {TEST_PRINT_ID: {counts.CountTypes.copies: 3}}
    rows = csv.rows_for_printings(cdb, print_counts, False)
    assert list(rows) == [{
        "set": "MMA",
        "name": "Thallid",
        "number": "167",
        "multiverseid": 370352,
        "id": "fc46a4b72d216117a352f59217a84d0baeaaacb7",
        "copies": 3,
    }]
コード例 #2
0
ファイル: test_csv.py プロジェクト: gwax/mtg_ssm
def test_rows_for_printings_terse(cdb):
    print_counts = {TEST_PRINT_ID: {counts.CountTypes.copies: 3}}
    rows = csv.rows_for_printings(cdb, print_counts, False)
    assert list(rows) == [
        {
            'set': 'MMA',
            'name': 'Thallid',
            'number': '167',
            'multiverseid': 370352,
            'id': 'fc46a4b72d216117a352f59217a84d0baeaaacb7',
            'copies': 3,
        },
    ]
コード例 #3
0
ファイル: test_csv.py プロジェクト: gwax/mtg_ssm
def test_rows_for_printings_verbose(cdb):
    print_counts = {TEST_PRINT_ID: {counts.CountTypes.copies: 3}}
    rows = csv.rows_for_printings(cdb, print_counts, True)
    assert list(rows) == [
        {
            'set': 'pMGD',
            'name': "Black Sun's Zenith",
            'number': '7',
            'multiverseid': None,
            'id': '6c9ffa9ffd2cf7e6f85c6be1713ee0c546b9f8fc',
        },
        {
            'set': 'MMA',
            'name': 'Thallid',
            'number': '167',
            'multiverseid': 370352,
            'id': 'fc46a4b72d216117a352f59217a84d0baeaaacb7',
            'copies': 3,
        },
    ]
コード例 #4
0
ファイル: test_csv.py プロジェクト: TonyRoomZ/mtg_ssm
def test_rows_for_printings_verbose(cdb):
    print_counts = {TEST_PRINT_ID: {counts.CountTypes.copies: 3}}
    rows = csv.rows_for_printings(cdb, print_counts, True)
    assert list(rows) == [
        {
            "set": "pMGD",
            "name": "Black Sun's Zenith",
            "number": "7",
            "multiverseid": None,
            "id": "6c9ffa9ffd2cf7e6f85c6be1713ee0c546b9f8fc",
        },
        {
            "set": "MMA",
            "name": "Thallid",
            "number": "167",
            "multiverseid": 370352,
            "id": "fc46a4b72d216117a352f59217a84d0baeaaacb7",
            "copies": 3,
        },
    ]