Test creating a failed batch result.
(self)
| 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 ─── |
nothing calls this directly
no test coverage detected