[Sprint 1] test: Create viz-platform MCP server tests #182

Closed
opened 2026-01-26 16:22:13 +00:00 by lmiranda · 0 comments
Owner

Description

Write unit tests for the viz-platform MCP server tools.

Acceptance Criteria

  • Create mcp-servers/viz-platform/tests/test_config.py:
    • Test DMC version detection
    • Test config loading from env files
  • Create mcp-servers/viz-platform/tests/test_component_registry.py:
    • Test registry loading
    • Test version matching/fallback
    • Test component lookup
  • Create mcp-servers/viz-platform/tests/test_dmc_tools.py:
    • Test list_components
    • Test get_component_props
    • Test validate_component (valid/invalid cases)
  • Create mcp-servers/viz-platform/tests/test_chart_tools.py:
    • Test chart_create for each chart type
    • Test theme token application
  • Create mcp-servers/viz-platform/tests/test_theme_tools.py:
    • Test theme_create
    • Test theme_extend
    • Test theme_validate
    • Test theme_export_css
  • All tests pass with pytest
  • Test coverage > 70%

Technical Notes

Use pytest and pytest-asyncio (same as data-platform tests).

Mock DMC package for registry tests to avoid dependency on actual installation.

Dependencies

## Description Write unit tests for the viz-platform MCP server tools. ## Acceptance Criteria - [ ] Create `mcp-servers/viz-platform/tests/test_config.py`: - Test DMC version detection - Test config loading from env files - [ ] Create `mcp-servers/viz-platform/tests/test_component_registry.py`: - Test registry loading - Test version matching/fallback - Test component lookup - [ ] Create `mcp-servers/viz-platform/tests/test_dmc_tools.py`: - Test list_components - Test get_component_props - Test validate_component (valid/invalid cases) - [ ] Create `mcp-servers/viz-platform/tests/test_chart_tools.py`: - Test chart_create for each chart type - Test theme token application - [ ] Create `mcp-servers/viz-platform/tests/test_theme_tools.py`: - Test theme_create - Test theme_extend - Test theme_validate - Test theme_export_css - [ ] All tests pass with `pytest` - [ ] Test coverage > 70% ## Technical Notes Use pytest and pytest-asyncio (same as data-platform tests). Mock DMC package for registry tests to avoid dependency on actual installation. ## Dependencies - Depends on #170, #171, #172, #173, #175 (tools must be implemented first)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: personal-projects/leo-claude-mktplace#182