Esempio n. 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
Esempio n. 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
Esempio n. 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)
Esempio n. 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
Esempio n. 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
Esempio n. 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)