Test the goals branch of project-record's store, a refused conversion and an unmakeable state folder

This commit is contained in:
2026-11-15 11:44:00 +01:00
parent 60bc76c876
commit e78725db51
2 changed files with 18 additions and 0 deletions
@@ -26,6 +26,11 @@ class Opened(unittest.TestCase):
assert isinstance(record, ConfluencePage), record
self.assertEqual(record.kept, pathlib.Path("/home/me/.local/state/project-record/acme/decisions.version"))
def test_the_goals_file_opens_through_the_goals_store(self):
config = ProjectConfig("acme", pathlib.Path("/home/me/.claude-projects/acme"), pathlib.Path("/code/acme"), {"goals-and-audience": pathlib.Path("/code/acme/README.md")})
record, copy = main.opened(config, "goals-and-audience", pathlib.Path("/home/me"))
self.assertEqual((record.label, copy), ("/code/acme/README.md", pathlib.Path("/home/me/.local/state/project-record/acme/goals-and-audience.md")))
class Act(unittest.TestCase):
def setUp(self) -> None: