diff options
| author | sommerfeld <sommerfeld@sommerfeld.dev> | 2026-09-22 14:30:19 +0100 |
|---|---|---|
| committer | sommerfeld <sommerfeld@sommerfeld.dev> | 2026-09-22 14:30:19 +0100 |
| commit | 92c29300d7363b02807f5b5c1aa48eeef5e18bb2 (patch) | |
| tree | 31258151ca6e3a5120aa153f5a592f9d77a0e149 /tests/test_canonical_desktop.py | |
| parent | 05bf213010f4a09487c1bb67e73e61bd31bb33b7 (diff) | |
| download | dotfiles-92c29300d7363b02807f5b5c1aa48eeef5e18bb2.tar.gz dotfiles-92c29300d7363b02807f5b5c1aa48eeef5e18bb2.tar.bz2 dotfiles-92c29300d7363b02807f5b5c1aa48eeef5e18bb2.zip | |
Use dynamic workspaces on the corporate desktop
Diffstat (limited to 'tests/test_canonical_desktop.py')
| -rw-r--r-- | tests/test_canonical_desktop.py | 8 |
1 files changed, 8 insertions, 0 deletions
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({}) |
