File size: 782 Bytes
dbb04e4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
import asyncio
import sys
import os
from unittest.mock import patch
# Add src to path
sys.path.append(os.getcwd())
from mnemocore.core.qdrant_store import QdrantStore
async def main():
print("Starting main", flush=True)
with patch("src.core.qdrant_store.AsyncQdrantClient") as MockClass:
print("Patched AsyncQdrantClient", flush=True)
try:
store = QdrantStore()
print("Instantiated QdrantStore", flush=True)
await store.ensure_collections()
print("Called ensure_collections", flush=True)
except Exception as e:
print(f"Error: {e}", flush=True)
import traceback
traceback.print_exc()
if __name__ == "__main__":
asyncio.run(main())
|