Answer stability round 1: 0 🔴, 2 🟡 (0 misread); name the signed-out check beside its message, and report a signal as a shell does; the 🟢 for a claude that cannot start is declined, as the home's build fails first
This commit is contained in:
@@ -21,7 +21,7 @@ class ClaudeRelease(unittest.TestCase):
|
||||
fake = FakeEffects(on_terminal_claude=[0])
|
||||
code, err = self.run_main(["--resume", "abc", "--model", "opus", "-p", "hi"], fake)
|
||||
self.assertEqual((code, err, fake.made("claude_on_terminal"), fake.terminal_folders), (0, "", [["--resume", "abc", "--model", "opus", "-p", "hi"]], ["/project"]))
|
||||
# The effect adds the home and the tools' PATH to the environment; the command adds nothing of its own.
|
||||
# The effect adds the home and the tools' PATH to the environment; the command doesn't add anything.
|
||||
self.assertEqual(fake.terminal_environments, [{}])
|
||||
|
||||
def test_exits_with_the_code_of_claude(self):
|
||||
@@ -32,6 +32,9 @@ class ClaudeRelease(unittest.TestCase):
|
||||
fake.home_unready = f"{SIGNED_OUT}; run `CLAUDE_CONFIG_DIR=/h claude` and type /login there, once"
|
||||
self.assertEqual((self.run_main([], fake)[0], len(fake.made("claude_on_terminal"))), (0, 1))
|
||||
|
||||
def test_exits_as_a_shell_reports_a_claude_that_a_signal_ended(self):
|
||||
self.assertEqual(self.run_main([], FakeEffects(on_terminal_claude=[-15]))[0], 143)
|
||||
|
||||
def test_stops_where_the_home_cannot_be_built(self):
|
||||
fake = FakeEffects()
|
||||
fake.home_unready = "could not build the loop's Claude home, /h: disk full"
|
||||
|
||||
Reference in New Issue
Block a user