1
0
Fork 0
Code Issues Pull requests Projects Releases 2 Packages Wiki Activity Actions Pages

Refine bounded traversal contracts

This commit is contained in:
Andraxion 2026-07-29 04:15:13 -04:00
parent c69cd16515
commit 4ae9b31db5
8 changed files with 101 additions and 26 deletions

View file

@ -24,6 +24,22 @@ class DocForgeCliTests(unittest.TestCase):
shutil.copytree(FIXTURES / "alpha", root)
return root
def test_traversal_commands_accept_explicit_result_limits(self) -> None:
parser = _parser()
for command in ("backlinks", "dependencies", "impact"):
with self.subTest(command=command):
arguments = parser.parse_args(
[
"--project-root",
"/tmp/project",
command,
"guide.workflow",
"--limit",
"7",
]
)
self.assertEqual(7, arguments.limit)
def test_reindex_apply_and_visualization_commands_are_self_service(self) -> None:
with tempfile.TemporaryDirectory() as directory:
parent = Path(directory)