- Fixed NameError by adding missing Union import in filter.py - Reorganized all tests into tests/ subdirectory - Fixed recursive initialization issue in proxy.py - Added proper test infrastructure with Makefile and setup.py test target - Created test_config.yaml for test configurations - Added Brave Search integration test (requires BRAVE_API_KEY) - Fixed async test fixtures to use @pytest_asyncio.fixture - Updated tests to handle 3 sparse tools (including onboarding) - Fixed JSONPath queries to avoid unsupported filter syntax - Created unit tests that don't require server initialization - Added test_simple.py for basic functionality tests All unit tests now pass successfully. Integration tests that require full server setup are marked as skipped. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
31 lines
No EOL
734 B
YAML
31 lines
No EOL
734 B
YAML
# Test configuration for MCP Browser tests
|
|
|
|
servers:
|
|
# Brave Search MCP server for testing
|
|
brave-search:
|
|
command: ["npx", "-y", "@modelcontextprotocol/server-brave-search"]
|
|
name: "brave-search"
|
|
description: "Brave Search MCP server"
|
|
env:
|
|
BRAVE_API_KEY: "test-key" # Will need real key for actual tests
|
|
|
|
# Built-in only mode (no external server)
|
|
builtin-only:
|
|
command: null
|
|
name: "builtin-only"
|
|
description: "Only use built-in servers"
|
|
|
|
# Use builtin-only for tests by default
|
|
default_server: "builtin-only"
|
|
|
|
# Enable sparse mode
|
|
sparse_mode: true
|
|
|
|
# Enable built-in servers
|
|
enable_builtin_servers: true
|
|
|
|
# Disable debug for tests
|
|
debug: false
|
|
|
|
# Shorter timeout for tests
|
|
timeout: 10.0 |