This repository was archived by the owner on Jun 5, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +5
-6
lines changed
pipeline/codegate_context_retriever Expand file tree Collapse file tree 4 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ def _load_existing_certificates(self) -> None:
173173 self ._cert_cache [common_name ] = CachedCertificate (
174174 cert_path = cert_path ,
175175 key_path = key_path ,
176- creation_time = datetime .utcnow ( ),
176+ creation_time = datetime .now ( datetime . UTC ),
177177 )
178178 else :
179179 logger .debug (f"Skipping expired certificate for { common_name } " )
Original file line number Diff line number Diff line change @@ -68,9 +68,7 @@ async def process(
6868
6969 # Vector search to find bad packages
7070 storage_engine = StorageEngine ()
71- searched_objects = await storage_engine .search (
72- query = user_messages , distance = 0.8 , limit = 100
73- )
71+ searched_objects = await storage_engine .search (query = user_messages , distance = 0.8 , limit = 100 )
7472
7573 logger .info (
7674 f"Found { len (searched_objects )} matches in the database" ,
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ class PackageExtractor:
6969 (use_wildcard) @import_name)
7070 (use_declaration
7171 (use_as_clause (scoped_identifier) @import_name))
72- """
72+ """ ,
7373 }
7474
7575 @staticmethod
Original file line number Diff line number Diff line change 44from pathlib import Path
55from unittest .mock import AsyncMock , MagicMock , patch
66
7+ import httpx
78import pytest
89from click .testing import CliRunner
910from fastapi .middleware .cors import CORSMiddleware
@@ -143,7 +144,7 @@ def test_system_routes(mock_pipeline_factory) -> None:
143144async def test_async_health_check (mock_pipeline_factory ) -> None :
144145 """Test the health check endpoint with async client."""
145146 app = init_app (mock_pipeline_factory )
146- async with AsyncClient (app = app , base_url = "http://test" ) as ac :
147+ async with AsyncClient (transport = httpx . ASGITransport ( app = app ) , base_url = "http://test" ) as ac :
147148 response = await ac .get ("/health" )
148149 assert response .status_code == 200
149150 assert response .json () == {"status" : "healthy" }
You can’t perform that action at this time.
0 commit comments