We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/HyunjunJeon/vibecoding-lg-mcp-a2a'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
conftest.py•657 B
import asyncio
import os
import pytest
if "OPENAI_API_KEY" in os.environ:
raise AssertionError(
"Attempting to run unit tests with an OpenAI key in the environment. "
"Please remove the key from the environment before running tests."
)
os.environ["OPENAI_API_KEY"] = "test_key"
@pytest.fixture(scope="session")
def event_loop():
"""Create a single asyncio event loop for the entire test session,
and only close it once at the very end.
This overrides pytest-asyncio's default event_loop fixture.
"""
policy = asyncio.get_event_loop_policy()
loop = policy.new_event_loop()
yield loop
loop.close()