conftest.pyā¢813 B
"""
Pytest configuration and shared fixtures for MCP PyBoy tests.
This module provides essential test configuration for testing
the MCP PyBoy Emulator Server components.
"""
import asyncio
import pytest
# Pytest configuration
def pytest_configure(config):
"""Configure pytest with custom markers."""
config.addinivalue_line("markers", "unit: Unit tests")
config.addinivalue_line("markers", "integration: Integration tests")
config.addinivalue_line("markers", "slow: Slow running tests")
config.addinivalue_line("markers", "emulator: Tests requiring PyBoy emulator")
@pytest.fixture(scope="session")
def event_loop():
"""Create an instance of the default event loop for the test session."""
loop = asyncio.get_event_loop_policy().new_event_loop()
yield loop
loop.close()