diff --git a/tests/conftest.py b/tests/conftest.py new file mode 100644 index 0000000..5c432a0 --- /dev/null +++ b/tests/conftest.py @@ -0,0 +1,13 @@ +""" +Pytest configuration for tests. + +Configures anyio to only use asyncio backend (not trio). +""" + +import pytest + + +@pytest.fixture(scope="session") +def anyio_backend(): + """Override anyio backend to only use asyncio (not trio).""" + return "asyncio" diff --git a/tests/test_unified_mcp_integration.py b/tests/test_unified_mcp_integration.py index b9ba879..d8053c8 100644 --- a/tests/test_unified_mcp_integration.py +++ b/tests/test_unified_mcp_integration.py @@ -9,8 +9,12 @@ import sys import json import tempfile import asyncio +import pytest from pathlib import Path +# Configure pytest to only use asyncio backend (not trio) +pytestmark = pytest.mark.anyio + # Add skill_seeker_mcp to path sys.path.insert(0, str(Path(__file__).parent.parent / 'skill_seeker_mcp'))