Beispiel #1
0
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
Beispiel #2
0
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
Beispiel #3
0
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)
Beispiel #4
0
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
Beispiel #5
0
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
Beispiel #6
0
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)