Skip to content

Commit d08f9cd

Browse files
committed
Fixed codestyle issues
1 parent e82dc8e commit d08f9cd

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

tests/test_asyncio/test_search.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1534,11 +1534,18 @@ async def test_withsuffixtrie(decoded_r: redis.Redis):
15341534
@skip_ifmodversion_lt("2.10.05", "search")
15351535
async def test_aggregations_add_scores(decoded_r: redis.Redis):
15361536
assert await decoded_r.ft().create_index(
1537-
(TextField("name", sortable=True, weight=5.0), NumericField("age", sortable=True))
1537+
(
1538+
TextField("name", sortable=True, weight=5.0),
1539+
NumericField("age", sortable=True)
1540+
)
15381541
)
15391542

1540-
assert await decoded_r.ft().client.hset("doc1", mapping={"name": "bar", "age": "25"})
1541-
assert await decoded_r.ft().client.hset("doc2", mapping={"name": "foo", "age": "19"})
1543+
assert await decoded_r.ft().client.hset(
1544+
"doc1", mapping={"name": "bar", "age": "25"}
1545+
)
1546+
assert await decoded_r.ft().client.hset(
1547+
"doc2", mapping={"name": "foo", "age": "19"}
1548+
)
15421549

15431550
req = (aggregations.AggregateRequest("*").add_scores())
15441551
res = await decoded_r.ft().aggregate(req)

tests/test_search.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1444,7 +1444,10 @@ def test_aggregations_filter(client):
14441444
@skip_ifmodversion_lt("2.10.05", "search")
14451445
def test_aggregations_add_scores(client):
14461446
client.ft().create_index(
1447-
(TextField("name", sortable=True, weight=5.0), NumericField("age", sortable=True))
1447+
(
1448+
TextField("name", sortable=True, weight=5.0),
1449+
NumericField("age", sortable=True)
1450+
)
14481451
)
14491452

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

0 commit comments

Comments
 (0)