@@ -23,7 +23,6 @@ def test_get_typo_tolerance_default(empty_index):
23
23
response = empty_index ().get_typo_tolerance ()
24
24
assert isinstance (response , dict )
25
25
assert response == DEFAULT_TYPO_TOLERANCE
26
- print (response )
27
26
28
27
def test_update_typo_tolerance (empty_index ):
29
28
"""Tests updating typo_tolerance."""
@@ -37,7 +36,7 @@ def test_update_typo_tolerance(empty_index):
37
36
assert isinstance (response , dict )
38
37
for typo_tolerance in NEW_TYPO_TOLERANCE :
39
38
assert typo_tolerance in response
40
- assert NEW_TYPO_TOLERANCE . get ( typo_tolerance ) == response [typo_tolerance ]
39
+ assert NEW_TYPO_TOLERANCE [ typo_tolerance ] == response [typo_tolerance ]
41
40
42
41
def test_reset_typo_tolerance (empty_index ):
43
42
"""Tests resetting the typo_tolerance setting to its default value."""
@@ -51,7 +50,7 @@ def test_reset_typo_tolerance(empty_index):
51
50
assert isinstance (response , dict )
52
51
for typo_tolerance in NEW_TYPO_TOLERANCE :
53
52
assert typo_tolerance in response
54
- assert NEW_TYPO_TOLERANCE . get ( typo_tolerance ) == response [typo_tolerance ]
53
+ assert NEW_TYPO_TOLERANCE [ typo_tolerance ] == response [typo_tolerance ]
55
54
# Check the reset of the settings
56
55
response = index .reset_typo_tolerance ()
57
56
assert isinstance (response , dict )
0 commit comments