Skip to main content
Glama

Python Apple MCP

by jxnl
test_reminders_direct.py1.25 kB
"""Tests for Reminders module using direct execution (no mocks).""" import pytest import pytest_asyncio import asyncio from datetime import datetime, timedelta from utils.reminders import RemindersModule @pytest.mark.asyncio async def test_reminders_integration(reminders): """Test Reminders integration.""" # Create a test reminder test_title = f"Test Reminder {datetime.now().strftime('%Y%m%d_%H%M%S')}" test_notes = "This is a test reminder created by integration tests." test_due_date = datetime.now() + timedelta(days=1) result = await reminders.create_reminder( name=test_title, list_name="Reminders", notes=test_notes, due_date=test_due_date ) assert result["success"] is True # Search for the reminder found_reminders = await reminders.search_reminders(test_title) assert isinstance(found_reminders, list) # Print the structure for debugging print("Found reminders structure:") for reminder in found_reminders: print(f"Reminder: {reminder}") # We just verify we get a list back, since the structure may vary # depending on permissions and the state of the reminders app assert isinstance(found_reminders, 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