Squash-merge lib-standardisation: adopt repo standards across packaging, tooling, docs, and CI. - standardize pyproject.toml (canonical packaging, lint config, extras, GSDFC pydoclint) - add py.typed marker, modernize type hints and Google-style docstrings - nest generated docs under docs/lib and docs/mcp; add hand-written wiki - adopt standard Type A PyPI CI pipeline (tag==version guard + quality gate) - promote generated CHANGELOG.md; bump version to 0.0.7
19 lines
387 B
Python
19 lines
387 B
Python
from docforge.cli.main import cli
|
|
|
|
|
|
def test_mcp_serve(
|
|
cli_runner,
|
|
fake_mcp_docs,
|
|
mock_mcp_server_run,
|
|
monkeypatch,
|
|
):
|
|
monkeypatch.chdir(fake_mcp_docs.parent)
|
|
|
|
result = cli_runner.invoke(
|
|
cli,
|
|
["serve", "--mcp", "--module", "fake_module", "--out-dir", str(fake_mcp_docs)],
|
|
)
|
|
|
|
assert result.exit_code == 0
|
|
assert mock_mcp_server_run()
|