Skip to content

Commit dedbad9

Browse files
committed
Update test cases
1 parent 01dac39 commit dedbad9

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/api_resources/knowledge_bases/test_indexing_jobs.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,8 @@ def test_wait_for_completion_raises_indexing_job_error_on_failed(self, client: G
245245
"job": {
246246
"uuid": job_uuid,
247247
"phase": "BATCH_JOB_PHASE_FAILED",
248-
"total_items_indexed": 10,
249-
"total_items_failed": 5,
248+
"total_items_indexed": "10",
249+
"total_items_failed": "5",
250250
}
251251
},
252252
)
@@ -341,8 +341,8 @@ def test_wait_for_completion_succeeds(self, client: Gradient, respx_mock: Any) -
341341
"job": {
342342
"uuid": job_uuid,
343343
"phase": "BATCH_JOB_PHASE_SUCCEEDED",
344-
"total_items_indexed": 100,
345-
"total_items_failed": 0,
344+
"total_items_indexed": "100",
345+
"total_items_failed": "0",
346346
}
347347
},
348348
)
@@ -578,8 +578,8 @@ async def test_wait_for_completion_raises_indexing_job_error_on_failed(self, asy
578578
"job": {
579579
"uuid": job_uuid,
580580
"phase": "BATCH_JOB_PHASE_FAILED",
581-
"total_items_indexed": 10,
582-
"total_items_failed": 5,
581+
"total_items_indexed": "10",
582+
"total_items_failed": "5",
583583
}
584584
},
585585
)
@@ -674,8 +674,8 @@ async def test_wait_for_completion_succeeds(self, async_client: AsyncGradient, r
674674
"job": {
675675
"uuid": job_uuid,
676676
"phase": "BATCH_JOB_PHASE_SUCCEEDED",
677-
"total_items_indexed": 100,
678-
"total_items_failed": 0,
677+
"total_items_indexed": "100",
678+
"total_items_failed": "0",
679679
}
680680
},
681681
)

0 commit comments

Comments
 (0)