Skip to content

Commit cb7f921

Browse files
committed
Add space to tests for readability
1 parent 91b4265 commit cb7f921

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/settings/test_settings_typo_tolerance_meilisearch.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,25 @@
2121
def test_get_typo_tolerance_default(empty_index):
2222
"""Tests getting default typo_tolerance."""
2323
response = empty_index().get_typo_tolerance()
24+
2425
assert isinstance(response, dict)
2526
assert response == DEFAULT_TYPO_TOLERANCE
2627

2728
def test_update_typo_tolerance(empty_index):
2829
"""Tests updating typo_tolerance."""
2930
index = empty_index()
31+
3032
response = index.update_typo_tolerance(NEW_TYPO_TOLERANCE)
33+
3134
assert isinstance(response, dict)
3235
assert 'uid' in response
36+
3337
update = index.wait_for_task(response['uid'])
38+
3439
assert update['status'] == 'succeeded'
40+
3541
response = index.get_typo_tolerance()
42+
3643
assert isinstance(response, dict)
3744
for typo_tolerance in NEW_TYPO_TOLERANCE:
3845
assert typo_tolerance in response
@@ -41,21 +48,31 @@ def test_update_typo_tolerance(empty_index):
4148
def test_reset_typo_tolerance(empty_index):
4249
"""Tests resetting the typo_tolerance setting to its default value."""
4350
index = empty_index()
51+
4452
# Update the settings first
4553
response = index.update_typo_tolerance(NEW_TYPO_TOLERANCE)
4654
update = index.wait_for_task(response['uid'])
55+
4756
assert update['status'] == 'succeeded'
57+
4858
# Check the settings have been correctly updated
4959
response = index.get_typo_tolerance()
60+
5061
assert isinstance(response, dict)
5162
for typo_tolerance in NEW_TYPO_TOLERANCE:
5263
assert typo_tolerance in response
5364
assert NEW_TYPO_TOLERANCE[typo_tolerance] == response[typo_tolerance]
65+
5466
# Check the reset of the settings
5567
response = index.reset_typo_tolerance()
68+
5669
assert isinstance(response, dict)
5770
assert 'uid' in response
71+
5872
update = index.wait_for_task(response['uid'])
73+
5974
assert update['status'] == 'succeeded'
75+
6076
response = index.get_typo_tolerance()
77+
6178
assert response == DEFAULT_TYPO_TOLERANCE

0 commit comments

Comments
 (0)