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

Method assert_test

tests/test_faiss.py:65–72  ·  view source on GitHub ↗

Assert test condition and track results.

(self, condition: bool, test_name: str, message: str = "")

Source from the content-addressed store, hash-verified

63 shutil.rmtree(self.test_dir)
64
65 def assert_test(self, condition: bool, test_name: str, message: str = ""):
66 """Assert test condition and track results."""
67 if condition:
68 print(f"✓ {test_name}")
69 self.passed_tests += 1
70 else:
71 print(f"✗ {test_name}: {message}")
72 self.failed_tests += 1
73
74 async def test_basic_document_operations(self):
75 """Test basic document add/delete operations."""

Calls 1

printFunction · 0.85

Tested by

no test coverage detected