MCPcopy
hub / github.com/lektor/lektor / test_project_info_path_flags

Function test_project_info_path_flags

tests/test_cli.py:119–127  ·  view source on GitHub ↗
(project_cli_runner, flag, expect)

Source from the content-addressed store, hash-verified

117 ],
118)
119def test_project_info_path_flags(project_cli_runner, flag, expect):
120 tree_dir = os.getcwd()
121 result = project_cli_runner.invoke(cli, ["project-info", flag])
122 assert result.exit_code == 0
123 assert result.stdout.rstrip() == expect.format(
124 tree_dir=tree_dir,
125 output_path=Project.from_path(tree_dir).get_output_path(),
126 os=os,
127 )

Callers

nothing calls this directly

Calls 3

formatMethod · 0.80
get_output_pathMethod · 0.80
from_pathMethod · 0.80

Tested by

no test coverage detected