Answer principles round 2: 0 🔴, 0 🟡 (0 misread); read the preloaded files before the scoring worktree is made, and state Route's contract
CI / tests (pull_request) Successful in 2m58s
CI / tests (pull_request) Successful in 2m58s
This commit is contained in:
@@ -896,8 +896,7 @@ class TodoRankCheck(unittest.TestCase):
|
||||
checkout = self.changed_plan(self.other, "")
|
||||
pathlib.Path(checkout, "todo.md").chmod(0)
|
||||
self.addCleanup(pathlib.Path(checkout, "todo.md").chmod, 0o600)
|
||||
self.assertEqual(len(self.details(checkout)), 1)
|
||||
self.assertIn("Permission denied", self.details(checkout)[0])
|
||||
self.assertEqual(["Permission denied" in detail for detail in self.details(checkout)], [True])
|
||||
|
||||
def details(self, checkout: str) -> list[str]:
|
||||
return [breach.detail for breach in todo_breaches(checkout, pathlib.Path.home(), pathlib.Path(self.own))]
|
||||
|
||||
Reference in New Issue
Block a user