aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_obs.py
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-09 18:25:59 +0100
committerDanilo M. <danix@danix.xyz>2026-11-09 18:25:59 +0100
commit7f99167f0b6a3c83bf77e20bc5e03942b901fb71 (patch)
tree6b60263b6f702e6088eae30087c6dfa2a5a71f4c /tests/test_obs.py
parent03e2adab3fb58532ba1e32c2f01a9ec14f11e484 (diff)
downloaddeck-it-7f99167f0b6a3c83bf77e20bc5e03942b901fb71.tar.gz
deck-it-7f99167f0b6a3c83bf77e20bc5e03942b901fb71.zip
fix: OBS idle timeout, payload validation, workspace list
Diffstat (limited to 'tests/test_obs.py')
-rw-r--r--tests/test_obs.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/test_obs.py b/tests/test_obs.py
index 876d48b..aeb0791 100644
--- a/tests/test_obs.py
+++ b/tests/test_obs.py
@@ -39,7 +39,14 @@ class Actions(unittest.TestCase):
def test_state_offline(self):
class Off:
connected = False
- self.assertEqual(obs.make({"client": Off()}).state(), {"connected": False})
+ st = obs.make({"client": Off()}).state()
+ self.assertFalse(st["connected"])
+ self.assertIn("error", st)
+
+ def test_record_requires_a_bool(self):
+ for bad in ({}, {"on": "false"}, {"on": 1}):
+ with self.assertRaises(obs.ModuleError, msg=bad):
+ self.m.actions["record"](bad)
class Serialized(unittest.TestCase):