Skip to content

Commit

Permalink
Fix test on qt6
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Nov 26, 2024
1 parent aaec233 commit ef7c184
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/src/python/test_qgs3dmaterials.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ def test_getters_setters(self):
# Test default values
self.assertEqual(settings.ambient(),
QColor.fromRgbF(0.1, 0.1, 0.1, 1.0))
self.assertEqual(settings.diffuse().name(),
'#b2b2b2')
self.assertIn(settings.diffuse().name(),
('#b2b2b2', '#b3b3b3'))
self.assertEqual(settings.specular(),
QColor.fromRgbF(1.0, 1.0, 1.0, 1.0))
self.assertEqual(settings.shininess(), 0.0)
Expand Down Expand Up @@ -248,8 +248,8 @@ def test_getters_setters(self):
# Test default values
self.assertEqual(settings.warm(), QColor(107, 0, 107))
self.assertEqual(settings.cool(), QColor(255, 130, 0))
self.assertEqual(settings.diffuse().name(),
'#b2b2b2')
self.assertIn(settings.diffuse().name(),
('#b2b2b2', '#b3b3b3'))
self.assertEqual(settings.specular(),
QColor.fromRgbF(1.0, 1.0, 1.0, 1.0))
self.assertEqual(settings.shininess(), 100.0)
Expand Down

0 comments on commit ef7c184

Please sign in to comment.