mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-28 22:06:31 +00:00
test(library): mark the directory_batch fixture walk as outside the project tree
test_no_raw_project_walk flagged the rglob in DirectoryBatchTests.tearDown. It walks the test's own TemporaryDirectory to make every directory writable again before cleanup, after tests that leave an unwritable parent behind, so the cached project-file helpers do not apply. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
b796903d21
commit
eca6dc9e50
1 file changed
+1
-1
@@ -44,7 +44,7 @@ class DirectoryBatchTests(unittest.TestCase):
|
||||
self.root = Path(self._tmp.name)
|
||||
|
||||
def tearDown(self):
|
||||
for path in self.root.rglob("*"):
|
||||
for path in self.root.rglob("*"): # nocheck: project-walk tempdir fixture, outside the project tree
|
||||
if path.is_dir() and not path.is_symlink():
|
||||
path.chmod(0o700)
|
||||
self._tmp.cleanup()
|
||||
|
||||
Reference in new issue
Block a user