From 5083d345f27fb4ad631d0a90cbf531281c722662 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 4 Dec 2026 03:09:13 +0100 Subject: [PATCH] Test a sign-in status that is JSON but no object, and one whose loggedIn is no boolean --- bin/claude_home/test_home.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/claude_home/test_home.py b/bin/claude_home/test_home.py index efb6436a..af2d7f35 100644 --- a/bin/claude_home/test_home.py +++ b/bin/claude_home/test_home.py @@ -128,7 +128,7 @@ class Home(unittest.TestCase): self.assertEqual(self.unready(), f"nobody is signed in to the loop's Claude home; run `CLAUDE_CONFIG_DIR={self.home} claude` and type /login there, once") def test_a_status_that_says_nobody_is_signed_in_or_out_quotes_what_claude_said(self) -> None: - for stdout, stderr, said in (("", "Error: the settings\nare broken\n", "Error: the settings are broken"), ("Not logged in\n", "", "Not logged in"), ('{"authMethod": "none"}', "", '{"authMethod": "none"}'), ("", "", "it printed nothing and exited 1")): + for stdout, stderr, said in (("", "Error: the settings\nare broken\n", "Error: the settings are broken"), ("Not logged in\n", "", "Not logged in"), ('{"authMethod": "none"}', "", '{"authMethod": "none"}'), ("3", "", "3"), ('{"loggedIn": "yes"}', "", '{"loggedIn": "yes"}'), ("", "", "it printed nothing and exited 1")): with self.subTest(said=said): def claude(args: list[str]) -> subprocess.CompletedProcess[str]: return subprocess.CompletedProcess(args, 1, stdout, stderr) if args == ["auth", "status"] else subprocess.CompletedProcess(args, 0, "", "")