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

Commit a0c6736

Browse files
committed
Fixed the tests
1 parent 91a09d1 commit a0c6736

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_button.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ def test_bgchange(qtbot):
8686
image = configureImage(WIDTH, HEIGHT, backgroundcolour=Qt.red)
8787
gridColor = 0
8888
bgColor = 0
89-
for i in range(0, WIDTH):
90-
for j in range(0, HEIGHT):
89+
for i in range(0, image.size().width()):
90+
for j in range(0, image.size().height()):
9191
p = QPoint(i, j)
9292
if image.pixelColor(p) == Qt.red:
9393
bgColor += 1
@@ -100,8 +100,8 @@ def test_gridchange(qtbot):
100100
image = configureImage(WIDTH, HEIGHT, gridcolour=Qt.red)
101101
gridColor = 0
102102
bgColor = 0
103-
for i in range(0, WIDTH):
104-
for j in range(0, HEIGHT):
103+
for i in range(0, image.size().width()):
104+
for j in range(0, image.size().height()):
105105
p = QPoint(i, j)
106106
if image.pixelColor(p) == Qt.red:
107107
bgColor += 1

0 commit comments

Comments
 (0)