コード例 #1
0
ファイル: test_functions.py プロジェクト: allebacco/PyTileMap
def test_make_pen_list_of_colors_and_widths(colorArgs, qcolor, width, style):
    testPen = makePen(colorArgs, width=width, style=style)
    refPen = [QPen(QBrush(c), w, style=style) for c, w in zip(qcolor, width)]
    assert testPen == refPen
コード例 #2
0
ファイル: test_functions.py プロジェクト: allebacco/PyTileMap
def test_make_pen_list_of_colors(colorArgs, qcolor, width, style):
    testPen = makePen(colorArgs, width=width, style=style)
    refPen = [QPen(QBrush(c), width, style=style) for c in qcolor]
    assert testPen == refPen
コード例 #3
0
ファイル: test_functions.py プロジェクト: allebacco/PyTileMap
def test_make_pen_single_color(colorArgs, qcolor, width, style):
    testPen = makePen(colorArgs, width=width, style=style)
    assert testPen == QPen(QBrush(qcolor), width, style=style)
コード例 #4
0
ファイル: test_functions.py プロジェクト: mkell85/PyTileMap
def test_make_pen_list_of_colors_and_widths(colorArgs, qcolor, width, style):
    testPen = makePen(colorArgs, width=width, style=style)
    refPen = [QPen(QBrush(c), w, style=style) for c, w in zip(qcolor, width)]
    assert testPen == refPen
コード例 #5
0
ファイル: test_functions.py プロジェクト: mkell85/PyTileMap
def test_make_pen_list_of_colors(colorArgs, qcolor, width, style):
    testPen = makePen(colorArgs, width=width, style=style)
    refPen = [QPen(QBrush(c), width, style=style) for c in qcolor]
    assert testPen == refPen
コード例 #6
0
ファイル: test_functions.py プロジェクト: mkell85/PyTileMap
def test_make_pen_single_color(colorArgs, qcolor, width, style):
    testPen = makePen(colorArgs, width=width, style=style)
    assert testPen == QPen(QBrush(qcolor), width, style=style)