Skip to content

Commit

Permalink
Add test for GUIInterface init with no UI directories
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Jul 7, 2023
1 parent 3f5929d commit 1993804
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/unittests/test_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ def test_00_gui_interface_init(self):
upload_message = self.volunteered_upload.call_args[0][0]
self.assertEqual(upload_message.data["skill_id"], self.iface_name)

# Test GUI init with no ui directories
self.GUIInterface("no_ui_dirs_gui", self.bus, None, self.config)
self.volunteered_upload.assert_called_once_with(upload_message)

def test_build_message_type(self):
name = "test"
self.assertEqual(self.interface.build_message_type(name),
Expand Down

0 comments on commit 1993804

Please sign in to comment.