aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_config.py
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-30 11:01:09 +0100
committerDanilo M. <danix@danix.xyz>2026-11-30 11:01:09 +0100
commit88f120cb544296f4c760546a204f1e2268a2e5dd (patch)
treebe14896616b3733556f3bc10a1406fc3c84d6044 /tests/test_config.py
parent96355cff09db091f5251ae851c46b8d1dd67f7a0 (diff)
downloaddeck-it-88f120cb544296f4c760546a204f1e2268a2e5dd.tar.gz
deck-it-88f120cb544296f4c760546a204f1e2268a2e5dd.zip
feat(dashboard): drop the action icons row
The screenshot and lock buttons went unused; the keyboard is faster. The actions module keeps only the hyprlock watcher that sleeps and wakes the tablet, under the same name since keystone's module toggle uses it. [dashboard] actions is gone from the config and its validation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests/test_config.py')
-rw-r--r--tests/test_config.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/tests/test_config.py b/tests/test_config.py
index 906d8d3..928a8e8 100644
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -39,17 +39,10 @@ class Config(unittest.TestCase):
{"ports": {"command_center": 80}},
{"ports": {"command_center": 5900, "display": 5900}},
{"wifi": {"address": "x; rm -rf ~"}},
- {"launch": {"apps": ["ok", "../evil"]}},
- {"dashboard": {"actions": ["screenshot", "rm -rf"]}},
- {"dashboard": {"actions": "lock"}}]
+ {"launch": {"apps": ["ok", "../evil"]}}]
for cfg in bad:
self.assertIsNotNone(config.config_error(cfg), cfg)
- def test_dashboard_actions(self):
- self.assertIsNone(config.config_error({"dashboard": {"actions": []}}))
- self.assertIsNone(config.config_error({"dashboard": {"actions": ["lock", "screenshot"]}}))
- self.assertEqual(config.ACTION_IDS, ("screenshot", "lock"))
-
def test_user_file_overrides_key_by_key(self):
cfg = config.merge({"display": {"enabled": True, "scale": 1}, "launch": {"apps": ["a", "b"]}},
{"display": {"enabled": False}, "launch": {"apps": ["c"]}})