Test the rungs rule-hook leaves unchecked, the home it reads the ladder under and the prompts' rungs at the ladder's ends
CI / tests (pull_request) Successful in 2m59s

This commit is contained in:
2026-11-15 19:07:22 +01:00
parent 8d58dec886
commit 46135acab6
4 changed files with 22 additions and 1 deletions
+3 -1
View File
@@ -122,7 +122,9 @@ class LoadTest(ConfigCase):
def test_tells_a_checkout_no_config_names_from_one_whose_config_is_faulty(self) -> None:
self.assertIsInstance(load(self.checkout, self.checkout, self.home), Unnamed)
self.assertIsInstance(located(str(self.checkout), self.home), Unnamed, "a folder that is no checkout has no config either")
outside = located(str(self.checkout), self.home)
self.assertIsInstance(outside, Unnamed, "a folder that is no checkout has no config either")
self.assertIn("not a git repository", outside.reason)
self.write("acme", CLIENT.replace('plan = "folder:todo.md"\n', ""))
self.assertNotIsInstance(load(self.checkout, self.checkout, self.home), Unnamed)
self.assertIn("`plan` is missing", self.failure())