Test a completed batch job info.
(self)
| 123 | """Tests for the BatchJobInfo dataclass.""" |
| 124 | |
| 125 | def test_completed_batch(self): |
| 126 | """Test a completed batch job info.""" |
| 127 | info = BatchJobInfo( |
| 128 | batch_id="batch_123", |
| 129 | status="completed", |
| 130 | total_requests=10, |
| 131 | completed_requests=10, |
| 132 | failed_requests=0, |
| 133 | output_file_id="file-abc", |
| 134 | ) |
| 135 | assert info.status == "completed" |
| 136 | assert info.total_requests == 10 |
| 137 | assert info.failed_requests == 0 |
| 138 | |
| 139 | def test_in_progress_batch(self): |
| 140 | """Test an in-progress batch job info.""" |
nothing calls this directly
no test coverage detected