diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-16 17:31:03 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-16 17:31:03 +0100 |
| commit | 26b2f3255dea0ee13c562ffcfd8d641fd976d5f8 (patch) | |
| tree | d984fb4d08878b2ad7858f2c582707409952f9f0 /tests | |
| parent | db13056723c0c13fcf9ea98ed258a619f9654ab8 (diff) | |
| download | deck-it-26b2f3255dea0ee13c562ffcfd8d641fd976d5f8.tar.gz deck-it-26b2f3255dea0ee13c562ffcfd8d641fd976d5f8.zip | |
fix(xbox): a refused console list no longer blanks the tab; tab icon
xccs answers 403 from its gateway while every other Xbox Live endpoint
answers, and that one failure marked the whole tab offline. The console
list now fails on its own, the tab says console control is unavailable,
and the rest reads. The Xbox tab gets the Xbox glyph like the others.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_xbox.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_xbox.py b/tests/test_xbox.py index 748d0ca..1b73a2d 100644 --- a/tests/test_xbox.py +++ b/tests/test_xbox.py @@ -280,6 +280,16 @@ class Tick(Base): self.assertTrue(st["stale"]) self.assertEqual(st["profile"]["gamertag"], "Player") + def test_a_refused_console_list_keeps_the_rest(self): + x = self.xbox() + self.fake.fail["/lists/devices"] = xb.HttpError(403, {}) + x.tick() + st = x.state() + self.assertFalse(st["stale"]) + self.assertEqual(st["consoles"], []) + self.assertEqual(st["profile"]["gamertag"], "Player") + self.assertIn("consoles", st["reason"]) + def test_one_failing_part_keeps_the_rest(self): x = self.xbox() self.fake.fail["peoplehub"] = xb.HttpError(403, {}) |
