Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit 0f1997e

Browse files
committed
fix tests
1 parent 2cf72cd commit 0f1997e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/codegate/storage/storage_engine.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import time
12
from codegate.codegate_logging import setup_logging
23
from codegate.inference.inference_engine import LlamaCppInferenceEngine
34
from weaviate.classes.config import DataType
@@ -53,16 +54,13 @@ def __init__(self, data_path='./weaviate_data'):
5354
self.__logger.error("Could not find client, skipping schema setup.")
5455

5556
def setup_schema(self, client):
56-
print("in setup schema")
5757
for class_config in self.schema_config:
58-
print("i get config")
5958
if not client.collections.exists(class_config['name']):
60-
print("i create")
6159
client.collections.create(class_config['name'],
6260
properties=class_config['properties'])
6361
self.__logger.info(
6462
f"Weaviate schema for class {class_config['name']} setup complete.")
65-
print("finish schema")
63+
time.sleep(1)
6664

6765
async def search(self, query: str, limit=5, distance=0.3) -> list[object]:
6866
"""

0 commit comments

Comments
 (0)