Skip to content
This repository was archived by the owner on Oct 12, 2020. It is now read-only.

Commit ba9dd6b

Browse files
committed
Fixed the tests
1 parent eed2427 commit ba9dd6b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_button.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,16 +98,16 @@ def test_bgchange(qtbot):
9898
assert (bgColor > gridColor) is True, 'Background colour of the graph is not getting changed'
9999

100100
def test_gridchange(qtbot):
101-
image = configureImage(WIDTH, HEIGHT, gridcolour=Qt.red)
101+
image = configureImage(WIDTH, HEIGHT, gridcolour=Qt.red, backgroundcolour=Qt.transparent)
102102
gridColor = 0
103103
bgColor = 0
104104
image = image.scaled(WIDTH, HEIGHT)
105105
for i in range(0, WIDTH):
106106
for j in range(0, HEIGHT):
107107
p = QPoint(i, j)
108108
if image.pixelColor(p) == Qt.red:
109-
bgColor += 1
110-
else:
111109
gridColor += 1
110+
else:
111+
bgColor += 1
112112

113113
assert (gridColor < bgColor) is True, 'Grid colour of the graph is not getting changed'

0 commit comments

Comments
 (0)