Skip to content

Commit 31eb42a

Browse files
committed
oweditdomain: Fix test for light mode
1 parent 2868416 commit 31eb42a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Orange/widgets/data/tests/test_oweditdomain.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1239,7 +1239,10 @@ def get_style_option(row: int) -> QStyleOptionViewItem:
12391239
RestoreWarningRole: ("bb", "aa"),
12401240
})
12411241
opt = get_style_option(1)
1242-
self.assertEqual(opt.palette.color(QPalette.Text), QColor(Qt.yellow))
1242+
self.assertIn(
1243+
opt.palette.color(QPalette.Text),
1244+
(QColor(Qt.yellow), QColor(255, 148, 11))
1245+
)
12431246

12441247

12451248
class TestTransforms(TestCase):

0 commit comments

Comments
 (0)