Skip to content

Commit a25244e

Browse files
committed
Move fixture to conftest file to fix linting issue
1 parent 2097c73 commit a25244e

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

tests/conftest.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,3 +225,13 @@ def enable_vector_search():
225225
json={"vectorStore": False},
226226
timeout=10,
227227
)
228+
229+
230+
@fixture
231+
def new_embedders():
232+
return {
233+
"default": {
234+
"source": "userProvided",
235+
"dimensions": 1,
236+
}
237+
}

tests/settings/test_settings_embedders.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,6 @@
33
from meilisearch.models.index import Embedders
44

55

6-
@pytest.fixture
7-
def new_embedders():
8-
return {
9-
"default": {
10-
"source": "userProvided",
11-
"dimensions": 1,
12-
}
13-
}
14-
15-
166
@pytest.mark.usefixtures("enable_vector_search")
177
def test_get_default_embedders(empty_index):
188
"""Tests getting default embedders."""
@@ -33,6 +23,7 @@ def test_update_embedders_with_user_provided_source(new_embedders, empty_index):
3323

3424

3525
@pytest.mark.usefixtures("enable_vector_search")
26+
@pytest.mark.usefixtures("new_embedders")
3627
def test_reset_embedders(new_embedders, empty_index):
3728
"""Tests resetting the typo_tolerance setting to its default value."""
3829
index = empty_index()

0 commit comments

Comments
 (0)