Answer stability round 2: 0 🔴, 0 🟡 (0 misread); test that a gather before any review makes the review folders private; the digest's errors="replace" stays untested, as it takes a lone surrogate in a stream
CI / tests (pull_request) Successful in 5m6s
CI / tests (pull_request) Successful in 5m6s
This commit is contained in:
@@ -3,6 +3,7 @@ import contextlib
|
||||
import io
|
||||
import json
|
||||
import pathlib
|
||||
import shutil
|
||||
import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
@@ -71,6 +72,11 @@ class GatherTest(unittest.TestCase):
|
||||
found = gather(self.env, self.home, self.claude)
|
||||
self.assertEqual((found.reason if isinstance(found, Failure) else found, self.calls), (f"{self.bench} holds no digest: run task-bench in this checkout first.", []))
|
||||
|
||||
def test_a_gather_before_any_review_makes_the_review_folders_private(self):
|
||||
shutil.rmtree(self.home / ".local")
|
||||
self.assertIsInstance(gather(self.env, self.home, self.claude), Failure)
|
||||
self.assertEqual((self.home / ".local/state/larv-review").stat().st_mode & 0o777, 0o700)
|
||||
|
||||
def test_a_claude_that_fails_or_hits_a_limit_keeps_the_folder_for_another_try(self):
|
||||
self.code = 1
|
||||
found = gather(self.env, self.home, self.claude)
|
||||
|
||||
Reference in New Issue
Block a user