summaryrefslogtreecommitdiff
path: root/tests/test_search.py
diff options
context:
space:
mode:
authorAvital Fine <79420960+AvitalFineRedis@users.noreply.github.com>2021-12-02 14:52:46 +0100
committerGitHub <noreply@github.com>2021-12-02 15:52:46 +0200
commit8f5c1e6b14c4c82d04a3ad141821e2fdabdd0dab (patch)
tree11099c17afc90058db5429cf4583e9cdde671d09 /tests/test_search.py
parent42101fc383829bb179a266420132d3f862861972 (diff)
downloadredis-py-8f5c1e6b14c4c82d04a3ad141821e2fdabdd0dab.tar.gz
Aggregation loadall (#1735)
Co-authored-by: Chayim <chayim@users.noreply.github.com>
Diffstat (limited to 'tests/test_search.py')
-rw-r--r--tests/test_search.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_search.py b/tests/test_search.py
index 5b6a660..1a22b66 100644
--- a/tests/test_search.py
+++ b/tests/test_search.py
@@ -1054,6 +1054,11 @@ def test_aggregations_load(client):
res = client.ft().aggregate(req)
assert res.rows[0] == ["t2", "world"]
+ # load all
+ req = aggregations.AggregateRequest("*").load()
+ res = client.ft().aggregate(req)
+ assert res.rows[0] == ["t1", "hello", "t2", "world"]
+
@pytest.mark.redismod
def test_aggregations_apply(client):