From 92c29300d7363b02807f5b5c1aa48eeef5e18bb2 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Tue, 22 Sep 2026 14:30:19 +0100 Subject: Use dynamic workspaces on the corporate desktop --- tests/test_canonical_desktop.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/test_canonical_desktop.py') diff --git a/tests/test_canonical_desktop.py b/tests/test_canonical_desktop.py index a8229bd..146ae9f 100644 --- a/tests/test_canonical_desktop.py +++ b/tests/test_canonical_desktop.py @@ -14,6 +14,14 @@ SPEC.loader.exec_module(desktop) class DesktopTests(unittest.TestCase): + def test_workspaces_are_dynamic_without_a_fixed_count(self): + with patch.object(desktop, "write_key") as write: + desktop.workspaces({}) + write.assert_any_call("org.gnome.mutter", "dynamic-workspaces", True, {}) + self.assertFalse( + any(call.args[1] == "num-workspaces" for call in write.call_args_list) + ) + def test_workspace_indicator_uses_numbers(self): with patch.object(desktop, "write_key") as write: desktop.tiling({}) -- cgit v1.3.1