Skip to content

Commit f0f946c

Browse files
committed
Codestyle fixes
1 parent 52499b6 commit f0f946c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/test_asyncio/test_search.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ async def test_summarize(decoded_r: redis.Redis):
687687
await createIndex(decoded_r.ft())
688688
await waitForIndex(decoded_r, "idx")
689689

690-
q = Query("\"king henry\"").paging(0, 1)
690+
q = Query('"king henry"').paging(0, 1)
691691
q.highlight(fields=("play", "txt"), tags=("<b>", "</b>"))
692692
q.summarize("txt")
693693

@@ -699,7 +699,7 @@ async def test_summarize(decoded_r: redis.Redis):
699699
== doc.txt
700700
)
701701

702-
q = Query("\"king henry\"").paging(0, 1).summarize().highlight()
702+
q = Query('"king henry"').paging(0, 1).summarize().highlight()
703703

704704
doc = sorted((await decoded_r.ft().search(q)).docs)[0]
705705
assert "<b>Henry</b> ... " == doc.play
@@ -715,7 +715,7 @@ async def test_summarize(decoded_r: redis.Redis):
715715
== doc["extra_attributes"]["txt"]
716716
)
717717

718-
q = Query("\"king henry\"").paging(0, 1).summarize().highlight()
718+
q = Query('"king henry"').paging(0, 1).summarize().highlight()
719719

720720
doc = sorted((await decoded_r.ft().search(q))["results"])[0]
721721
assert "<b>Henry</b> ... " == doc["extra_attributes"]["play"]

tests/test_search.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ def test_summarize(client):
647647
createIndex(client.ft())
648648
waitForIndex(client, getattr(client.ft(), "index_name", "idx"))
649649

650-
q = Query("\"king henry\"").paging(0, 1)
650+
q = Query('"king henry"').paging(0, 1)
651651
q.highlight(fields=("play", "txt"), tags=("<b>", "</b>"))
652652
q.summarize("txt")
653653

@@ -660,7 +660,7 @@ def test_summarize(client):
660660
== doc.txt
661661
)
662662

663-
q = Query("\"king henry\"").paging(0, 1).summarize().highlight()
663+
q = Query('"king henry"').paging(0, 1).summarize().highlight()
664664

665665
doc = sorted(client.ft().search(q).docs)[0]
666666
assert "<b>Henry</b> ... " == doc.play
@@ -676,7 +676,7 @@ def test_summarize(client):
676676
== doc["extra_attributes"]["txt"]
677677
)
678678

679-
q = Query("\"king henry\"").paging(0, 1).summarize().highlight()
679+
q = Query('"king henry"').paging(0, 1).summarize().highlight()
680680

681681
doc = sorted(client.ft().search(q)["results"])[0]
682682
assert "<b>Henry</b> ... " == doc["extra_attributes"]["play"]

0 commit comments

Comments
 (0)