Skip to main content
Glama

Python Apple MCP

by jxnl
test_mail_direct.py924 B
"""Tests for Mail module using direct execution (no mocks).""" import pytest import pytest_asyncio import asyncio from utils.mail import MailModule @pytest.mark.asyncio async def test_mail_basic_functions(mail): """Test basic mail functions without sending actual emails.""" # Test searching for emails (doesn't require sending) emails = await mail.search_mails("test") # Print the structure for debugging print("Search emails result structure:") print(f"Emails: {emails}") # Just verify we get a list back, content will depend on access assert isinstance(emails, list) # Test getting unread emails unread = await mail.get_unread_mails() # Print the structure for debugging print("Unread emails result structure:") print(f"Unread: {unread}") # Just verify we get a list back, content will depend on access assert isinstance(unread, list)

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/jxnl/python-apple-mcp'

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