From 9b9b7b6824cb9219f93d1a70414b2412ea7d3585 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Thu, 17 Sep 2026 15:05:37 +0100 Subject: Add GNOME panel status and corporate desktop tools --- tests/test_canonical_desktop.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'tests/test_canonical_desktop.py') diff --git a/tests/test_canonical_desktop.py b/tests/test_canonical_desktop.py index cdbc812..9bdace1 100644 --- a/tests/test_canonical_desktop.py +++ b/tests/test_canonical_desktop.py @@ -14,6 +14,30 @@ SPEC.loader.exec_module(desktop) class DesktopTests(unittest.TestCase): + def test_clipboard_shortcut_preserves_other_display_bindings(self): + settings = MagicMock() + settings.get_strv.return_value = ["p", "XF86Display", "x"] + with ( + patch.object(desktop, "settings_object", return_value=settings), + patch.object(desktop, "write_key") as write, + ): + desktop.shortcuts({}) + write.assert_any_call( + "org.gnome.mutter.keybindings", + "switch-monitor", + ["XF86Display", "x"], + {}, + ) + + def test_panel_settings_disable_external_ip_lookup(self): + with patch.object(desktop, "write_key") as write: + desktop.panel({}) + write.assert_any_call( + "org.gnome.shell.extensions.vitals", "include-public-ip", False, {} + ) + self.assertIn("corporate-panel@dotfiles", desktop.EXTENSIONS) + self.assertIn("ubuntu-appindicators@ubuntu.com", desktop.EXTENSIONS) + def test_unknown_keys_fail_without_writing(self): settings = MagicMock() settings.props.settings_schema.list_keys.return_value = [] -- cgit v1.3.1