MCPcopy Create free account
hub / github.com/LLMQuant/quant-mind / BatchResultPropertiesTests

Class BatchResultPropertiesTests

tests/flows/test_batch.py:12–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10
11
12class BatchResultPropertiesTests(unittest.TestCase):
13 def test_successes_and_failures_views(self) -> None:
14 result: BatchResult[str] = BatchResult(
15 total=4,
16 success_count=2,
17 failure_count=2,
18 results=["a", None, "c", None],
19 errors=[(1, ValueError("b")), (3, RuntimeError("d"))],
20 duration_seconds=0.0,
21 )
22 self.assertEqual(result.successes, [(0, "a"), (2, "c")])
23 self.assertEqual(
24 [(i, type(e).__name__) for i, e in result.failures],
25 [(1, "ValueError"), (3, "RuntimeError")],
26 )
27
28
29class BatchRunTests(unittest.IsolatedAsyncioTestCase):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected