Rank, check and edit the plan at the paths the project's config names
This commit is contained in:
@@ -88,6 +88,15 @@ class LoadTest(ConfigCase):
|
||||
assert isinstance(found, ProjectConfig), found
|
||||
self.assertEqual(found.paths["changelog"], worktree / "CHANGELOG.md")
|
||||
|
||||
def test_names_a_file_in_the_checkout_as_git_does_and_none_outside_it(self) -> None:
|
||||
self.write("acme", CLIENT.replace("folder:docs/decisions.md", "checkout:project/decisions.md"))
|
||||
worktree = self.home / "code" / "acme-billing-item-3"
|
||||
found = load(worktree, self.checkout, self.home)
|
||||
assert isinstance(found, ProjectConfig), found
|
||||
self.assertEqual(found.tracked("changelog"), "CHANGELOG.md")
|
||||
self.assertEqual(found.tracked("decisions"), "project/decisions.md")
|
||||
self.assertIsNone(found.tracked("plan"), "the config's folder is outside the checkout")
|
||||
|
||||
def test_an_absolute_checkout_and_path_are_taken_as_written(self) -> None:
|
||||
self.write("acme", CLIENT.replace("~/code/acme-billing", str(self.checkout)).replace("~/.claude/principles", "/srv/principles"))
|
||||
found = load(self.checkout, self.checkout, self.home)
|
||||
|
||||
Reference in New Issue
Block a user