Skip to content

Commit

Permalink
updated outdated assertion code or something
Browse files Browse the repository at this point in the history
  • Loading branch information
sezanzeb committed Oct 1, 2024
1 parent 448f028 commit 8e4e510
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/integration/test_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def test_populates_devices(self):

def test_updates_mapping(self):
self.gui.set_active_id("baz")
self.controller_mock.update_mapping.called_once_with(target_uinput="baz")
self.controller_mock.update_mapping.assert_called_once_with(target_uinput="baz")

def test_selects_correct_target(self):
self.message_broker.publish(MappingData(target_uinput="baz"))
Expand Down
8 changes: 4 additions & 4 deletions tests/integration/test_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,10 +492,10 @@ def test_get_color_works(self):
)

self.assertIsInstance(color, Gdk.RGBA)
self.assertNotAlmostEquals(color.red, fallback.red, delta=0.01)
self.assertNotAlmostEquals(color.green, fallback.blue, delta=0.01)
self.assertNotAlmostEquals(color.blue, fallback.green, delta=0.01)
self.assertNotAlmostEquals(color.alpha, fallback.alpha, delta=0.01)
self.assertNotAlmostEqual(color.red, fallback.red, delta=0.01)
self.assertNotAlmostEqual(color.green, fallback.blue, delta=0.01)
self.assertNotAlmostEqual(color.blue, fallback.green, delta=0.01)
self.assertNotAlmostEqual(color.alpha, fallback.alpha, delta=0.01)

def _test_color_wont_fallback(self, get_color, fallback):
color = get_color()
Expand Down

0 comments on commit 8e4e510

Please sign in to comment.