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

Method test_completed_batch

tests/test_batch_api.py:125–137  ·  view source on GitHub ↗

Test a completed batch job info.

(self)

Source from the content-addressed store, hash-verified

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."""

Callers

nothing calls this directly

Calls 1

BatchJobInfoClass · 0.90

Tested by

no test coverage detected