Skip to main content
Glama
test_taxonomy.py703 B
import sys from pathlib import Path ROOT = Path(__file__).resolve().parents[1] if str(ROOT) not in sys.path: sys.path.insert(0, str(ROOT)) from mcp_server.taxonomy import guess_genus # noqa: E402 def test_guess_genus_basic_two_part_name(): assert guess_genus("Arctium lappa") == "Arctium" def test_guess_genus_handles_extra_whitespace(): assert guess_genus(" Rosa canina ") == "Rosa" def test_guess_genus_single_word_returns_word(): assert guess_genus("Mangifera") == "Mangifera" def test_guess_genus_empty_string_returns_none(): assert guess_genus("") is None def test_guess_genus_none_returns_none(): assert guess_genus(None) is None # type: ignore[arg-type]

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/ndaniel/aurora-mcp'

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