diff options
Diffstat (limited to 'tests/test_comp_color.py')
| -rw-r--r-- | tests/test_comp_color.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/test_comp_color.py b/tests/test_comp_color.py index 48b07ff..2aa1f2c 100644 --- a/tests/test_comp_color.py +++ b/tests/test_comp_color.py @@ -14,8 +14,18 @@ def coreWithColorComp(qtbot, command): def test_comp_color_set_color(coreWithColorComp): - "Set imagePath of Image component" + """Set imagePath of Image component""" comp = coreWithColorComp.selectedComponents[0] comp.page.lineEdit_color1.setText("111,111,111") image = comp.previewRender() assert imageDataSum(image) == 1219276800 + + +def test_comp_color_gradient(coreWithColorComp): + """Test changing fill type to a gradient""" + comp = coreWithColorComp.selectedComponents[0] + comp.page.comboBox_fill.setCurrentIndex(1) + comp.page.lineEdit_color1.setText("0,0,0") + comp.page.lineEdit_color2.setText("255,255,255") + image = comp.previewRender() + assert imageDataSum(image) == 1849285965 |
