cli-cleanup (#1)
Reviewed-on: #1 Co-authored-by: Vishesh 'ironeagle' Bangotra <aetoskia@gmail.com> Co-committed-by: Vishesh 'ironeagle' Bangotra <aetoskia@gmail.com>
This commit is contained in:
17
tests/cli/test_serve_mcp.py
Normal file
17
tests/cli/test_serve_mcp.py
Normal file
@@ -0,0 +1,17 @@
|
||||
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", "--out-dir", str(fake_mcp_docs)],
|
||||
)
|
||||
|
||||
assert result.exit_code == 0
|
||||
assert mock_mcp_server_run()
|
||||
Reference in New Issue
Block a user