Files
doc-forge/tests/cli/test_serve_mcp.py
Vishesh 'ironeagle' Bangotra 06ffd2febd chore(release): 0.0.7
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
2026-10-17 02:16:44 +05:30

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()