Move runtime log and events modal
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from app.api.server import chat, critic_feedback, health, resolve_permission, resolve_secret
|
||||
from app.api.server import chat, critic_feedback, health, list_events, resolve_permission, resolve_secret
|
||||
from app.core.permission_resolution import PermissionResolutionRequest, SecretResolutionRequest
|
||||
from app.api.server import CriticFeedbackRequest
|
||||
from app.core.contracts import UserTask
|
||||
@@ -8,6 +8,12 @@ def test_health_handler() -> None:
|
||||
assert health() == {"status": "ok"}
|
||||
|
||||
|
||||
def test_events_handler_returns_event_list() -> None:
|
||||
body = list_events(limit=10)
|
||||
assert "events" in body
|
||||
assert isinstance(body["events"], list)
|
||||
|
||||
|
||||
def test_chat_handler_returns_runtime_events() -> None:
|
||||
body = chat(UserTask(input="hello from handler test"))
|
||||
assert body["status"] == "completed"
|
||||
|
||||
Reference in New Issue
Block a user