Refine bounded traversal contracts
This commit is contained in:
parent
c69cd16515
commit
4ae9b31db5
8 changed files with 101 additions and 26 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue