MCPcopy Create free account
hub / github.com/SkyworkAI/DeepResearchAgent / setup

Method setup

tests/test_faiss.py:49–57  ·  view source on GitHub ↗

Setup test environment.

(self)

Source from the content-addressed store, hash-verified

47 self.test_document_ids = []
48
49 async def setup(self):
50 """Setup test environment."""
51 self.test_dir = Path(tempfile.mkdtemp())
52 embedding_function = model_manager.get("text-embedding-3-large")
53 self.faiss_service = FaissService(
54 base_dir=self.test_dir,
55 embedding_function=embedding_function
56 )
57 print(f"Test directory: {self.test_dir}")
58
59 async def cleanup(self):
60 """Cleanup test environment."""

Callers 1

run_all_testsMethod · 0.95

Calls 3

FaissServiceClass · 0.90
printFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected