feat(api): implement phase 3 comprehensive control endpoints
This commit is contained in:
21
tests/test_api_control_endpoints.py
Normal file
21
tests/test_api_control_endpoints.py
Normal file
@@ -0,0 +1,21 @@
|
||||
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))
|
||||
Reference in New Issue
Block a user