aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-16 17:54:32 +0100
committerDanilo M. <danix@danix.xyz>2026-11-16 17:54:32 +0100
commit72f0f05096cea0695a6b65c8c911c43b89b791c0 (patch)
treebd72c5c85429d7d83afab46e627fccc4d1386d21 /tests
parent903a4527a9ed8802800c0fd0c09123ef3cde4c55 (diff)
downloaddeck-it-72f0f05096cea0695a6b65c8c911c43b89b791c0.tar.gz
deck-it-72f0f05096cea0695a6b65c8c911c43b89b791c0.zip
fix(xbox): follow a power change quickly
Diffstat (limited to 'tests')
-rw-r--r--tests/test_xbox.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_xbox.py b/tests/test_xbox.py
index d37423e..0bcc883 100644
--- a/tests/test_xbox.py
+++ b/tests/test_xbox.py
@@ -410,6 +410,13 @@ class Commands(Base):
with self.assertRaises(xb.ModuleError):
x.command("wake", {"console": "OTHER"})
+ def test_a_command_reads_quickly_for_a_while(self):
+ x = self.xbox()
+ x.tick()
+ self.assertEqual(x.next_read(), xb.FAST)
+ x.command("off", {"console": "CON1"})
+ self.assertEqual(x.next_read(), xb.QUICK)
+
def test_an_unreachable_console_says_what_to_do(self):
self.fake.answers["/commands"] = {"status": {"errorCode": "ErrorCallingWNS", "errorMessage": "Send command failed"}}
x = self.xbox()