summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordvora-h <67596500+dvora-h@users.noreply.github.com>2022-08-25 16:34:10 +0300
committerGitHub <noreply@github.com>2022-08-25 16:34:10 +0300
commitab5d407a03192bd8ab63a1bfc891db9c04330265 (patch)
tree1abdbcb44f762d7486b41d62d870020b0dddfc7f
parentb5ebada842c715e9ee74ea638a7e6d11afcddae1 (diff)
downloadredis-py-ab5d407a03192bd8ab63a1bfc891db9c04330265.tar.gz
fix test (#2358)
-rw-r--r--tests/test_asyncio/test_timeseries.py3
-rw-r--r--tests/test_timeseries.py2
2 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_asyncio/test_timeseries.py b/tests/test_asyncio/test_timeseries.py
index 182f6b5..ef58226 100644
--- a/tests/test_asyncio/test_timeseries.py
+++ b/tests/test_asyncio/test_timeseries.py
@@ -240,6 +240,9 @@ async def test_range_advanced(modclient: redis.Redis):
assert [(0, 5.0), (5, 6.0)] == await modclient.ts().range(
1, 0, 10, aggregation_type="count", bucket_size_msec=10, align=5
)
+ assert [(0, 2.5500000000000003), (10, 3.0)] == await modclient.ts().range(
+ 1, 0, 10, aggregation_type="twa", bucket_size_msec=10
+ )
@pytest.mark.redismod
diff --git a/tests/test_timeseries.py b/tests/test_timeseries.py
index b4b85e1..cb27a75 100644
--- a/tests/test_timeseries.py
+++ b/tests/test_timeseries.py
@@ -233,7 +233,7 @@ def test_range_advanced(client):
assert [(0, 5.0), (5, 6.0)] == client.ts().range(
1, 0, 10, aggregation_type="count", bucket_size_msec=10, align=5
)
- assert [(0, 2.5500000000000003), (10, 3.95)] == client.ts().range(
+ assert [(0, 2.5500000000000003), (10, 3.0)] == client.ts().range(
1, 0, 10, aggregation_type="twa", bucket_size_msec=10
)