Files
EvoScientist-Multi/tests/test_runtime_identity_capabilities.py
m4 d4b53bfb08
Docker / build (push) Has been cancelled
Test / pytest (ubuntu-latest, 3.12) (push) Has been cancelled
Test / pytest (windows-latest, 3.11) (push) Has been cancelled
Test / pytest (windows-latest, 3.12) (push) Has been cancelled
Lint / ruff (push) Has been cancelled
Test / pytest (ubuntu-latest, 3.11) (push) Has been cancelled
Build / build (push) Has been cancelled
test: cover stop contract, execution adapters, checkpointer race and runtime identity
2026-09-13 15:12:17 +08:00

17 lines
678 B
Python

"""Do not advertise restart-safe identity without a durable run backend."""
import asyncio
import json
from starlette.requests import Request
def test_capabilities_do_not_claim_restart_safe_identity(monkeypatch):
monkeypatch.setenv("EVOSCIENTIST_BACKEND_SERVICE_TOKEN", "test-only")
from EvoScientist.langgraph_dev.http import recoverable_run_capabilities
result = asyncio.run(recoverable_run_capabilities(Request({"type": "http"})))
capabilities = json.loads(bytes(result.body))
assert capabilities["deterministic_run_id"] is True
assert capabilities["durable_run_identity"] is False
assert capabilities["run_not_found_proves_absence"] is False