import pytest
from src.api_hook_client import ApiHookClient

@pytest.mark.asyncio
async def test_control_endpoints_exist():
 client = ApiHookClient()
 assert hasattr(client, "spawn_mma_worker")
 assert hasattr(client, "kill_mma_worker")
 assert hasattr(client, "pause_mma_pipeline")
 assert hasattr(client, "resume_mma_pipeline")
 assert hasattr(client, "inject_context")
 assert hasattr(client, "mutate_mma_dag")

def test_api_hook_client_control_methods_exist():
 client = ApiHookClient()
 assert callable(getattr(client, "spawn_mma_worker", None))
 assert callable(getattr(client, "kill_mma_worker", None))
 assert callable(getattr(client, "pause_mma_pipeline", None))
 assert callable(getattr(client, "resume_mma_pipeline", None))
 assert callable(getattr(client, "inject_context", None))
 assert callable(getattr(client, "mutate_mma_dag", None))
