MCPcopy
hub / github.com/tanelpoder/0xtools / run_single_test

Function run_single_test

xtop/tests/test_tui_mapping.py:293–306  ·  view source on GitHub ↗

Run a single test case by index

(test_index: int)

Source from the content-addressed store, hash-verified

291
292# Manual test runner for debugging
293async def run_single_test(test_index: int):
294 """Run a single test case by index"""
295 if test_index < 0 or test_index >= len(TEST_CASES):
296 print(f"Invalid test index: {test_index}")
297 return
298
299 test_case = TEST_CASES[test_index]
300 print(f"Running test {test_index + 1}: {test_case.name}")
301
302 try:
303 await test_cli_mapping(test_case)
304 print(f"✓ Test passed")
305 except Exception as e:
306 print(f"✗ Test failed: {e}")
307
308
309# Main runner for standalone execution

Callers 1

Calls 1

test_cli_mappingFunction · 0.85

Tested by

no test coverage detected