Skip to content

Commit 0a27e81

Browse files
committed
assert
1 parent 12d8dde commit 0a27e81

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

_test_unstructured_client/integration/test_integration_freemium.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,8 @@ def test_partition_strategy_vlm_openai(split_pdf, vlm_model, vlm_model_provider,
269269
request=req
270270
)
271271
assert response.status_code == 200
272-
assert len(response.elements)
272+
assert len(response.elements) > 0
273+
assert response.elements[0]["metadata"]["partitioner_type"] == "vlm_partition"
273274

274275

275276
@pytest.mark.parametrize("split_pdf", [True, False])
@@ -317,8 +318,8 @@ def test_partition_strategy_vlm_bedrock(split_pdf, vlm_model, vlm_model_provider
317318
request=req
318319
)
319320
assert response.status_code == 200
320-
assert len(response.elements)
321-
321+
assert len(response.elements) > 0
322+
assert response.elements[0]["metadata"]["partitioner_type"] == "vlm_partition"
322323

323324
@pytest.mark.parametrize("split_pdf", [True, False])
324325
@pytest.mark.parametrize("vlm_model", ["claude-3-5-sonnet-20241022",])
@@ -354,4 +355,5 @@ def test_partition_strategy_vlm_anthropic(split_pdf, vlm_model, vlm_model_provid
354355
request=req
355356
)
356357
assert response.status_code == 200
357-
assert len(response.elements)
358+
assert len(response.elements) > 0
359+
assert response.elements[0]["metadata"]["partitioner_type"] == "vlm_partition"

0 commit comments

Comments
 (0)