Assert test condition and track results.
(self, condition: bool, test_name: str, message: str = "")
| 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.""" |
no test coverage detected