Skip to content

Commit 6dff151

Browse files
author
matdev83
committed
Fixes
1 parent 301a1a9 commit 6dff151

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/unit/openrouter_connector_tests/test_non_streaming_success.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ def mock_get_openrouter_headers(_: str, api_key: str) -> dict[str, str]:
3434
async def openrouter_backend_fixture():
3535
async with httpx.AsyncClient() as client:
3636
from src.core.config.app_config import AppConfig
37+
from src.core.di.services import get_service_collection, register_core_services
38+
39+
# Ensure core services are registered before creating the backend
40+
service_collection = get_service_collection()
41+
register_core_services(service_collection)
3742

3843
config = AppConfig()
3944
backend = OpenRouterBackend(client=client, config=config)

0 commit comments

Comments
 (0)