Skip to content

Commit

Permalink
More codestyle fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vladvildanov committed Jul 22, 2024
1 parent d08f9cd commit e53f22c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/test_asyncio/test_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -1536,7 +1536,7 @@ async def test_aggregations_add_scores(decoded_r: redis.Redis):
assert await decoded_r.ft().create_index(
(
TextField("name", sortable=True, weight=5.0),
NumericField("age", sortable=True)
NumericField("age", sortable=True),
)
)

Expand All @@ -1547,7 +1547,7 @@ async def test_aggregations_add_scores(decoded_r: redis.Redis):
"doc2", mapping={"name": "foo", "age": "19"}
)

req = (aggregations.AggregateRequest("*").add_scores())
req = aggregations.AggregateRequest("*").add_scores()
res = await decoded_r.ft().aggregate(req)
assert len(res.rows) == 2
assert res.rows[0] == ["__score", "0.2"]
Expand Down
4 changes: 2 additions & 2 deletions tests/test_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -1446,14 +1446,14 @@ def test_aggregations_add_scores(client):
client.ft().create_index(
(
TextField("name", sortable=True, weight=5.0),
NumericField("age", sortable=True)
NumericField("age", sortable=True),
)
)

client.ft().client.hset("doc1", mapping={"name": "bar", "age": "25"})
client.ft().client.hset("doc2", mapping={"name": "foo", "age": "19"})

req = (aggregations.AggregateRequest("*").add_scores())
req = aggregations.AggregateRequest("*").add_scores()
res = client.ft().aggregate(req)
assert len(res.rows) == 2
assert res.rows[0] == ["__score", "0.2"]
Expand Down

0 comments on commit e53f22c

Please sign in to comment.