Skip to content

Commit 7dc7c73

Browse files
Gaudy BlancoGaudy Blanco
authored andcommitted
fix test
1 parent 70747cd commit 7dc7c73

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/integration/vector_stores/test_azure_ai_search.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ async def test_vector_store_operations(
120120
"vector": [0.1, 0.2, 0.3, 0.4, 0.5],
121121
}
122122

123+
vector_store.create_index()
123124
vector_store.load_documents(sample_documents)
124125
assert mock_index_client.create_or_update_index.called
125126
assert mock_search_client.upload_documents.called
@@ -188,6 +189,7 @@ async def test_vector_store_customization(
188189
vector_store_custom.vector_field: [0.1, 0.2, 0.3, 0.4, 0.5],
189190
}
190191

192+
vector_store_custom.create_index()
191193
vector_store_custom.load_documents(sample_documents)
192194
assert mock_index_client.create_or_update_index.called
193195
assert mock_search_client.upload_documents.called

0 commit comments

Comments
 (0)