refactor: unify skills+cli runtime and streamline ag-ui flow
This commit is contained in:
@@ -3,7 +3,7 @@ from unittest.mock import AsyncMock, MagicMock
|
||||
from uuid import UUID, uuid4
|
||||
|
||||
import pytest
|
||||
from fastapi import HTTPException
|
||||
from core.http.errors import ApiProblemError
|
||||
|
||||
from core.auth.models import CurrentUser
|
||||
from models.inbox_messages import InboxMessage, InboxMessageStatus
|
||||
@@ -132,7 +132,7 @@ async def test_accept_subscription_not_found(
|
||||
inbox_repository=FakeInboxRepo(None),
|
||||
)
|
||||
|
||||
with pytest.raises(HTTPException) as exc_info:
|
||||
with pytest.raises(ApiProblemError) as exc_info:
|
||||
await service.accept_subscription(item_id)
|
||||
|
||||
assert exc_info.value.status_code == 404
|
||||
@@ -177,7 +177,7 @@ async def test_reject_subscription_not_found(
|
||||
inbox_repository=FakeInboxRepo(None),
|
||||
)
|
||||
|
||||
with pytest.raises(HTTPException) as exc_info:
|
||||
with pytest.raises(ApiProblemError) as exc_info:
|
||||
await service.reject_subscription(item_id)
|
||||
|
||||
assert exc_info.value.status_code == 404
|
||||
|
||||
Reference in New Issue
Block a user