Skip to content

Commit 1530d5e

Browse files
committed
Correct defaut by default
1 parent b17f1a8 commit 1530d5e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/settings/test_settings.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
'exactness'
1414
]
1515

16-
DEFAUT_TYPO_TOLERANCE = {
16+
DEFAULT_TYPO_TOLERANCE = {
1717
'enabled': True,
1818
'minWordSizeForTypos': {
1919
'oneTypo': 5,
@@ -29,7 +29,7 @@ def test_get_settings_default(empty_index):
2929
assert isinstance(response, dict)
3030
for rule in DEFAULT_RANKING_RULES:
3131
assert rule in response['rankingRules']
32-
for typo in DEFAUT_TYPO_TOLERANCE:
32+
for typo in DEFAULT_TYPO_TOLERANCE:
3333
assert typo in response['typoTolerance']
3434
assert response['distinctAttribute'] is None
3535
assert response['searchableAttributes'] == ['*']
@@ -81,7 +81,7 @@ def test_reset_settings(empty_index):
8181
response = index.get_settings()
8282
for rule in DEFAULT_RANKING_RULES:
8383
assert rule in response['rankingRules']
84-
for typo in DEFAUT_TYPO_TOLERANCE:
84+
for typo in DEFAULT_TYPO_TOLERANCE:
8585
assert typo in response['typoTolerance']
8686
assert response['distinctAttribute'] is None
8787
assert response['displayedAttributes'] == ['*']

tests/settings/test_settings_typo_tolerance_meilisearch.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
DEFAUT_TYPO_TOLERANCE = {
1+
DEFAULT_TYPO_TOLERANCE = {
22
'enabled': True,
33
'minWordSizeForTypos': {
44
'oneTypo': 5,
@@ -22,7 +22,7 @@ def test_get_typo_tolerance_default(empty_index):
2222
"""Tests getting default typo_tolerance."""
2323
response = empty_index().get_typo_tolerance()
2424
assert isinstance(response, dict)
25-
assert response == DEFAUT_TYPO_TOLERANCE
25+
assert response == DEFAULT_TYPO_TOLERANCE
2626
print(response)
2727

2828
def test_update_typo_tolerance(empty_index):
@@ -57,4 +57,4 @@ def test_reset_typo_tolerance(empty_index):
5757
update = index.wait_for_task(response['uid'])
5858
assert update['status'] == 'succeeded'
5959
response = index.get_typo_tolerance()
60-
assert response == DEFAUT_TYPO_TOLERANCE
60+
assert response == DEFAULT_TYPO_TOLERANCE

0 commit comments

Comments
 (0)