Assert test condition and track results.
(self, condition: bool, test_name: str, message: str = "")
| 36 | shutil.rmtree(self.test_dir) |
| 37 | |
| 38 | def assert_test(self, condition: bool, test_name: str, message: str = ""): |
| 39 | """Assert test condition and track results.""" |
| 40 | if condition: |
| 41 | print(f"✓ {test_name}") |
| 42 | self.passed_tests += 1 |
| 43 | else: |
| 44 | print(f"✗ {test_name}: {message}") |
| 45 | self.failed_tests += 1 |
| 46 | |
| 47 | async def test_basic_file_operations(self): |
| 48 | """Test basic file read/write operations.""" |
no test coverage detected