Skip to content

Commit a413919

Browse files
committed
fixing linting errors
1 parent e37f640 commit a413919

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/api_resources/knowledge_bases/test_indexing_jobs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ def test_wait_for_completion_succeeds(self, client: Gradient, respx_mock: Any) -
349349

350350
result = client.knowledge_bases.indexing_jobs.wait_for_completion(job_uuid)
351351
assert_matches_type(IndexingJobRetrieveResponse, result, path=["response"])
352+
assert result.job is not None
352353
assert result.job.phase == "BATCH_JOB_PHASE_SUCCEEDED"
353354

354355

@@ -688,4 +689,5 @@ async def test_wait_for_completion_succeeds(self, async_client: AsyncGradient, r
688689

689690
result = await async_client.knowledge_bases.indexing_jobs.wait_for_completion(job_uuid)
690691
assert_matches_type(IndexingJobRetrieveResponse, result, path=["response"])
692+
assert result.job is not None
691693
assert result.job.phase == "BATCH_JOB_PHASE_SUCCEEDED"

0 commit comments

Comments
 (0)