From 26b2f3255dea0ee13c562ffcfd8d641fd976d5f8 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Mon, 16 Nov 2026 17:31:03 +0100 Subject: 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 --- tests/test_xbox.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests/test_xbox.py') 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, {}) -- cgit v1.2.3