Skip to main content
Glama
test_main.py802 B
"""Tests for CLI main entry point.""" import argparse import importlib def test_main_function_exists(): module = importlib.import_module("src.main") assert hasattr(module, "main") def test_create_parser_returns_argument_parser(): module = importlib.import_module("src.main") assert hasattr(module, "create_parser") parser = module.create_parser() assert isinstance(parser, argparse.ArgumentParser) def test_create_parser_adds_subparsers(): module = importlib.import_module("src.main") parser = module.create_parser() has_subparsers = False for action in parser._actions: # noqa: SLF001 - internal inspection for test if isinstance(action, argparse._SubParsersAction): has_subparsers = True break assert has_subparsers

Latest Blog Posts

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/mberjans/google-jules-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server