Skip to content

Commit 0ba8cd5

Browse files
authored
Merge pull request #292 from meilisearch/filterable-attributes
Update filterable attributes file
2 parents 405fe2c + 8067080 commit 0ba8cd5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

meilisearch/tests/settings/test_settings_attributes_for_faceting_meilisearch.py renamed to meilisearch/tests/settings/test_settings_filterable_attributes_meilisearch.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ def test_update_filterable_attributes(empty_index):
1313
index = empty_index()
1414
response = index.update_filterable_attributes(FILTERABLE_ATTRIBUTES)
1515
index.wait_for_pending_update(response['updateId'])
16-
get_attributes_new = index.get_filterable_attributes()
17-
assert len(get_attributes_new) == len(FILTERABLE_ATTRIBUTES)
1816
get_attributes = index.get_filterable_attributes()
17+
assert len(get_attributes) == len(FILTERABLE_ATTRIBUTES)
1918
for attribute in FILTERABLE_ATTRIBUTES:
2019
assert attribute in get_attributes
2120

@@ -44,9 +43,8 @@ def test_reset_filterable_attributes(empty_index):
4443
update = index.wait_for_pending_update(response['updateId'])
4544
assert update['status'] == 'processed'
4645
# Check the settings have been correctly updated
47-
get_attributes_new = index.get_filterable_attributes()
48-
assert len(get_attributes_new) == len(FILTERABLE_ATTRIBUTES)
4946
get_attributes = index.get_filterable_attributes()
47+
assert len(get_attributes) == len(FILTERABLE_ATTRIBUTES)
5048
for attribute in FILTERABLE_ATTRIBUTES:
5149
assert attribute in get_attributes
5250
# Check the reset of the settings

0 commit comments

Comments
 (0)