coordination-engine/tests/test_live.py
tegwick 628f984a10
All checks were successful
check / test (push) Successful in 7m8s
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 1s
Implement worker coordination runtime and finish WP-0003
Assistant: codex
Assistant-Model: gpt-6-astra
Assistant-Session: 01a07b5b-ea58-7ad2-bdbb-0b1c995cfc35
2026-09-07 23:19:52 +02:00

23 lines
676 B
Python

"""Opt-in read-only smoke; never injects a message or starts a worker."""
import os
import pytest
from coordination_engine.adapters import Hub, Tamq, registry
from coordination_engine.config import Config
@pytest.mark.live
@pytest.mark.skipif(
os.environ.get("COORDINATION_LIVE_SMOKE") != "1",
reason="set COORDINATION_LIVE_SMOKE=1 explicitly",
)
def test_local_adapter_discovery():
config = Config.load()
assert "coordination-engine" in registry()
assert isinstance(Hub(config).request("/repos/"), list)
hello = Tamq(config).request("ping")
assert {"bounded_delivery_ack_v1", "idempotent_send_v1"} <= set(
hello["capabilities"]
)