"""Pytest configuration and shared fixtures for test suite.""" import pytest @pytest.fixture def sample_gitea_config(): """Provide sample Gitea configuration for tests.""" return { "gitea_url": "https://gitea.test.com", "gitea_token": "test_token_123", "gitea_owner": "test_owner", "gitea_repo": "test_repo", } @pytest.fixture def sample_tools_list(): """Provide sample MCP tools list for testing.""" return [ { "name": "list_issues", "description": "List issues in repository", "inputSchema": { "type": "object", "properties": { "state": {"type": "string", "enum": ["open", "closed", "all"]}, }, }, }, { "name": "create_issue", "description": "Create a new issue", "inputSchema": { "type": "object", "properties": { "title": {"type": "string"}, "body": {"type": "string"}, }, "required": ["title"], }, }, { "name": "list_labels", "description": "List labels in repository", "inputSchema": {"type": "object", "properties": {}}, }, ] @pytest.fixture def sample_mcp_response(sample_tools_list): """Provide sample MCP list_tools response.""" return { "tools": sample_tools_list, "meta": { "version": "1.0", }, }