Answer principles round 1: 0 🔴, 1 🟡; give the true reason score-outcomes keeps its name, name archived_kind and three locals by what they hold

This commit is contained in:
2026-10-23 11:09:51 +02:00
parent 504aa31bdb
commit 21d507f0c5
6 changed files with 22 additions and 22 deletions
+5 -5
View File
@@ -93,12 +93,12 @@ class Parse(unittest.TestCase):
class ClaudeReply(unittest.TestCase):
@staticmethod
def claude(*outcomes):
def claude(*results):
def run(args, cwd, prompt):
outcome = outcomes[0]
if isinstance(outcome, OSError):
raise outcome
return subprocess.CompletedProcess(args, *outcome)
result = results[0]
if isinstance(result, OSError):
raise result
return subprocess.CompletedProcess(args, *result)
return run
def test_runs_claude_headless_with_the_args_in_cwd_on_the_prompt(self):