Skip to content

Commit

Permalink
Fix whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
ellnix committed Oct 24, 2023
1 parent a25e365 commit 98168cf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/settings/test_settings_text_separators_meilisearch.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
NEW_SEPARATOR_TOKENS = ["|", "…"]
NEW_NON_SEPARATOR_TOKENS = ["@", "#"]


def test_get_separator_tokens_default(empty_index):
"""Tests getting the default value of separator tokens."""
separator_tokens = empty_index().get_separator_tokens()
assert separator_tokens == []


def test_get_non_separator_tokens_default(empty_index):
"""Tests getting the default value of separator tokens."""
non_separator_tokens = empty_index().get_separator_tokens()
assert non_separator_tokens == []


def test_update_separator_tokens(empty_index):
"""Tests updating the separator tokens."""
index = empty_index()
Expand All @@ -22,6 +25,7 @@ def test_update_separator_tokens(empty_index):
for token in NEW_SEPARATOR_TOKENS:
assert token in separator_tokens


def test_update_non_separator_tokens(empty_index):
"""Tests updating the non separator tokens."""
index = empty_index()
Expand Down Expand Up @@ -52,6 +56,7 @@ def test_reset_separator_tokens(empty_index):
separator_tokens = index.get_separator_tokens()
assert separator_tokens == []


def test_non_reset_separator_tokens(empty_index):
"""Tests resetting the separator tokens to its default empty list."""
index = empty_index()
Expand Down

0 comments on commit 98168cf

Please sign in to comment.