diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-16 17:54:32 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-16 17:54:32 +0100 |
| commit | 72f0f05096cea0695a6b65c8c911c43b89b791c0 (patch) | |
| tree | bd72c5c85429d7d83afab46e627fccc4d1386d21 /tests | |
| parent | 903a4527a9ed8802800c0fd0c09123ef3cde4c55 (diff) | |
| download | deck-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.py | 7 |
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() |
