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

Method assert_test

tests/test_file_system.py:38–45  ·  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

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."""

Callers 10

test_permissionsMethod · 0.95
test_service_layerMethod · 0.95
test_handlersMethod · 0.95
test_error_handlingMethod · 0.95
test_edge_casesMethod · 0.95

Calls 1

printFunction · 0.85

Tested by

no test coverage detected