Skip to content

Commit 681d9ae

Browse files
committed
feat: Adding support Multimodal embedders.
1 parent 603df34 commit 681d9ae

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

tests/client/test_multimodal.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,12 @@ def load_image_base64(file_name: str) -> str:
131131

132132
# ---------------- Tests ----------------
133133
@pytest.mark.skipif(not VOYAGE_API_KEY, reason="Voyage API key not set")
134-
class TestMultimodalSearch: # pylint: disable=no-member
134+
class TestMultimodalSearch:
135135
"""Multi-modal search tests"""
136136

137+
# Class attribute populated by setup_index fixture
138+
search_client: Client
139+
137140
@pytest.fixture(autouse=True)
138141
def clear_indexes(self, client):
139142
"""
@@ -217,9 +220,7 @@ def setup_index(self, request):
217220

218221
# Store for tests on the class
219222
# Use request.cls to ensure attributes are available on test instances
220-
request.cls.client = client
221-
request.cls.index = index
222-
request.cls.search_client = Client(common.BASE_URL, common.MASTER_KEY) # Search client
223+
request.cls.search_client = client
223224

224225
def test_text_query(self):
225226
"""Test text query search"""

tests/fixtures/master-yoda.jpeg

178 KB
Loading

0 commit comments

Comments
 (0)