File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 13
13
'exactness'
14
14
]
15
15
16
- DEFAUT_TYPO_TOLERANCE = {
16
+ DEFAULT_TYPO_TOLERANCE = {
17
17
'enabled' : True ,
18
18
'minWordSizeForTypos' : {
19
19
'oneTypo' : 5 ,
@@ -29,7 +29,7 @@ def test_get_settings_default(empty_index):
29
29
assert isinstance (response , dict )
30
30
for rule in DEFAULT_RANKING_RULES :
31
31
assert rule in response ['rankingRules' ]
32
- for typo in DEFAUT_TYPO_TOLERANCE :
32
+ for typo in DEFAULT_TYPO_TOLERANCE :
33
33
assert typo in response ['typoTolerance' ]
34
34
assert response ['distinctAttribute' ] is None
35
35
assert response ['searchableAttributes' ] == ['*' ]
@@ -81,7 +81,7 @@ def test_reset_settings(empty_index):
81
81
response = index .get_settings ()
82
82
for rule in DEFAULT_RANKING_RULES :
83
83
assert rule in response ['rankingRules' ]
84
- for typo in DEFAUT_TYPO_TOLERANCE :
84
+ for typo in DEFAULT_TYPO_TOLERANCE :
85
85
assert typo in response ['typoTolerance' ]
86
86
assert response ['distinctAttribute' ] is None
87
87
assert response ['displayedAttributes' ] == ['*' ]
Original file line number Diff line number Diff line change 1
- DEFAUT_TYPO_TOLERANCE = {
1
+ DEFAULT_TYPO_TOLERANCE = {
2
2
'enabled' : True ,
3
3
'minWordSizeForTypos' : {
4
4
'oneTypo' : 5 ,
@@ -22,7 +22,7 @@ def test_get_typo_tolerance_default(empty_index):
22
22
"""Tests getting default typo_tolerance."""
23
23
response = empty_index ().get_typo_tolerance ()
24
24
assert isinstance (response , dict )
25
- assert response == DEFAUT_TYPO_TOLERANCE
25
+ assert response == DEFAULT_TYPO_TOLERANCE
26
26
print (response )
27
27
28
28
def test_update_typo_tolerance (empty_index ):
@@ -57,4 +57,4 @@ def test_reset_typo_tolerance(empty_index):
57
57
update = index .wait_for_task (response ['uid' ])
58
58
assert update ['status' ] == 'succeeded'
59
59
response = index .get_typo_tolerance ()
60
- assert response == DEFAUT_TYPO_TOLERANCE
60
+ assert response == DEFAULT_TYPO_TOLERANCE
You can’t perform that action at this time.
0 commit comments