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
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
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)