"""Unit test configuration and fixtures.
This module provides shared pytest fixtures and configuration for unit testing
the PyGithub MCP Server.
"""
import os
import pytest
from pygithub_mcp_server.utils.environment import load_dotenv, ENV_TEST
@pytest.fixture(scope="session", autouse=True)
def load_test_env():
"""Load test environment variables from .env.test file."""
# Set environment type to test
os.environ["PYGITHUB_ENV"] = ENV_TEST
# Load .env.test file
load_dotenv(ENV_TEST)
# Yield to tests
yield
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/AstroMined/pygithub-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server