MCPcopy Index your code
hub / github.com/ScrapeGraphAI/Scrapegraph-ai / test_failed_result

Method test_failed_result

tests/test_batch_api.py:108–116  ·  view source on GitHub ↗

Test creating a failed batch result.

(self)

Source from the content-addressed store, hash-verified

106 assert result.usage["prompt_tokens"] == 100
107
108 def test_failed_result(self):
109 """Test creating a failed batch result."""
110 result = BatchResult(
111 custom_id="doc_0001",
112 error="Rate limit exceeded",
113 )
114 assert result.custom_id == "doc_0001"
115 assert result.content is None
116 assert result.error == "Rate limit exceeded"
117
118
119# ─── BatchJobInfo Tests ───

Callers

nothing calls this directly

Calls 1

BatchResultClass · 0.90

Tested by

no test coverage detected