diff --git a/bin/task_bench/test_gather.py b/bin/task_bench/test_gather.py index b6c948d8..0c0889b4 100644 --- a/bin/task_bench/test_gather.py +++ b/bin/task_bench/test_gather.py @@ -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)