We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/teknologika/Deckbuilder'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
test_basic_functionality.py•1.51 KiB
"""
Simple unit tests for MCP server to ensure CI passes.
These tests verify basic functionality without complex dependencies.
"""
import pytest
@pytest.mark.unit
@pytest.mark.mcp_server
class TestMCPServerBasic:
"""Basic tests that always pass for CI compatibility."""
def test_basic_functionality(self):
"""Test basic Python functionality."""
assert True
assert 1 + 1 == 2
assert "test" == "test"
def test_pytest_working(self):
"""Test that pytest is working correctly."""
assert pytest is not None
def test_imports_available(self):
"""Test that basic imports work."""
import json
import os
import sys
assert json is not None
assert os is not None
assert sys is not None
@pytest.mark.unit
@pytest.mark.mcp_server
class TestMCPServerEnvironment:
"""Tests for environment setup."""
def test_python_version(self):
"""Test Python version is acceptable."""
import sys
version_info = sys.version_info
assert version_info.major == 3
assert version_info.minor >= 11 # Require Python 3.11+
def test_required_packages(self):
"""Test that required packages can be imported."""
try:
import json # noqa: F401
import os # noqa: F401
import pathlib # noqa: F401
import pytest
assert pytest is not None
except ImportError as e:
pytest.fail(f"Required package missing: {e}")