summaryrefslogtreecommitdiff
path: root/tests/test_search.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_search.py')
-rw-r--r--tests/test_search.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_search.py b/tests/test_search.py
index b65ac8d..c7b570c 100644
--- a/tests/test_search.py
+++ b/tests/test_search.py
@@ -99,7 +99,7 @@ def createIndex(client, num_docs=100, definition=None):
play, chapter, _, text = \
line[1], line[2], line[4], line[5]
- key = "{}:{}".format(play, chapter).lower()
+ key = f"{play}:{chapter}".lower()
d = chapters.setdefault(key, {})
d["play"] = play
d["txt"] = d.get("txt", "") + " " + text
@@ -861,7 +861,7 @@ def test_phonetic_matcher(client):
res = client.ft().search(Query("Jon"))
assert 2 == len(res.docs)
- assert ["John", "Jon"] == sorted([d.name for d in res.docs])
+ assert ["John", "Jon"] == sorted(d.name for d in res.docs)
@pytest.mark.redismod