Add PyPI README files and MCP resource/prompt tests
- README.md for all three packages (core, TUI, MCP) - pyproject.toml readme field for PyPI rendering - 8 new tests for MCP resources (5) and prompts (3) - Total MCP test coverage: 57 tests, 37 tools + 5 resources + 3 prompts
This commit is contained in:
parent
3ccec3be10
commit
bf72e784d3
8 changed files with 294 additions and 0 deletions
40
mcp/tests/test_prompts.py
Normal file
40
mcp/tests/test_prompts.py
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
"""Tests for MCP prompts (setup_wizard, satellite_tracking_guide, rf_sweep_guide)."""
|
||||
|
||||
import pytest
|
||||
from fastmcp import Client
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_setup_wizard_prompt(mcp_client: Client):
|
||||
result = await mcp_client.get_prompt("setup_wizard")
|
||||
|
||||
assert result.messages, "setup_wizard returned no messages"
|
||||
text = result.messages[0].content.text
|
||||
assert len(text) > 0
|
||||
assert "connect" in text.lower()
|
||||
assert "home_motor" in text
|
||||
assert "get_position" in text
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_satellite_tracking_guide_prompt(mcp_client: Client):
|
||||
result = await mcp_client.get_prompt("satellite_tracking_guide")
|
||||
|
||||
assert result.messages, "satellite_tracking_guide returned no messages"
|
||||
text = result.messages[0].content.text
|
||||
assert len(text) > 0
|
||||
assert "search_satellites" in text
|
||||
assert "get_passes" in text
|
||||
assert "move_to" in text
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_rf_sweep_guide_prompt(mcp_client: Client):
|
||||
result = await mcp_client.get_prompt("rf_sweep_guide")
|
||||
|
||||
assert result.messages, "rf_sweep_guide returned no messages"
|
||||
text = result.messages[0].content.text
|
||||
assert len(text) > 0
|
||||
assert "enable_lna" in text
|
||||
assert "get_rssi" in text
|
||||
assert "az_sweep" in text
|
||||
Loading…
Add table
Add a link
Reference in a new issue