@@ -562,17 +562,22 @@ def test_dataset_item_iterator(dataset):
562562def test_dataset_get_image_indexing_status (CLIENT ):
563563 dataset = Dataset (DATASET_WITH_EMBEDDINGS , CLIENT )
564564 resp = dataset .get_image_indexing_status ()
565- assert resp ["embedding_count" ]
566- assert resp ["image_count" ]
567- assert not resp ["object_count" ]
568- assert resp ["percent_indexed" ]
565+ print (resp )
566+ assert resp ["embedding_count" ] == 170
567+ assert resp ["image_count" ] == 170
568+ assert "object_count" not in resp
569+ assert round (resp ["percent_indexed" ], 2 ) == round (
570+ resp ["image_count" ] / resp ["embedding_count" ], 2
571+ )
569572
570573
571574@pytest .mark .integration
572575def test_dataset_get_object_indexing_status (CLIENT ):
573576 dataset = Dataset (DATASET_WITH_EMBEDDINGS , CLIENT )
574577 resp = dataset .get_object_indexing_status ()
575- assert resp ["embedding_count" ]
576- assert resp ["object_count" ]
577- assert not resp ["image_count" ]
578- assert resp ["percent_indexed" ]
578+ assert resp ["embedding_count" ] == 422
579+ assert resp ["object_count" ] == 423
580+ assert "image_count" not in resp
581+ assert round (resp ["percent_indexed" ], 2 ) == round (
582+ resp ["object_count" ] / resp ["embedding_count" ], 2
583+ )
0 commit comments