Skip to content

Commit e53f22c

Browse files
committed
More codestyle fixes
1 parent d08f9cd commit e53f22c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/test_asyncio/test_search.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1536,7 +1536,7 @@ async def test_aggregations_add_scores(decoded_r: redis.Redis):
15361536
assert await decoded_r.ft().create_index(
15371537
(
15381538
TextField("name", sortable=True, weight=5.0),
1539-
NumericField("age", sortable=True)
1539+
NumericField("age", sortable=True),
15401540
)
15411541
)
15421542

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

1550-
req = (aggregations.AggregateRequest("*").add_scores())
1550+
req = aggregations.AggregateRequest("*").add_scores()
15511551
res = await decoded_r.ft().aggregate(req)
15521552
assert len(res.rows) == 2
15531553
assert res.rows[0] == ["__score", "0.2"]

tests/test_search.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1446,14 +1446,14 @@ def test_aggregations_add_scores(client):
14461446
client.ft().create_index(
14471447
(
14481448
TextField("name", sortable=True, weight=5.0),
1449-
NumericField("age", sortable=True)
1449+
NumericField("age", sortable=True),
14501450
)
14511451
)
14521452

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

1456-
req = (aggregations.AggregateRequest("*").add_scores())
1456+
req = aggregations.AggregateRequest("*").add_scores()
14571457
res = client.ft().aggregate(req)
14581458
assert len(res.rows) == 2
14591459
assert res.rows[0] == ["__score", "0.2"]

0 commit comments

Comments
 (0)