Answer stability round 1: 0 🔴, 1 🟡 (0 misread); say the checkout's commits, not git, hold no version of a file outside it, and find a symlinked config folder
This commit is contained in:
@@ -939,9 +939,14 @@ class TodoRankCheck(unittest.TestCase):
|
||||
git(folder, "add", "-A")
|
||||
git(folder, "commit", "-q", "-m", "plan")
|
||||
self.assertEqual(self.details(folder), [], "committed, so unchanged")
|
||||
|
||||
def test_an_unreadable_config_does_not_block_a_commit_in_its_folder(self):
|
||||
self.changed_plan(f"{self.folder}/clone", self.STUB)
|
||||
folder = str(self.config.parent)
|
||||
git(folder, "init", "-q", "-b", "main")
|
||||
self.config.write_text("checkout = 3\n")
|
||||
(self.config.parent / "todo.md").write_text("# changed\n")
|
||||
self.assertEqual(self.details(folder), [], "a config to fix doesn't block the commit that fixes it")
|
||||
self.assertEqual(self.details(folder), [], "the commit that fixes the config goes through")
|
||||
|
||||
def test_a_commit_in_the_configs_folder_of_another_repo_checks_its_plan_with_the_hooks_ranking(self):
|
||||
self.changed_plan(self.other, self.STUB)
|
||||
|
||||
Reference in New Issue
Block a user