Fixing TimesSeries tests
@@ -226,7 +226,7 @@ def test_range_advanced(client):
assert [(0, 10.0), (10, 1.0)] == client.ts().range(
1, 0, 10, aggregation_type="count", bucket_size_msec=10, align="+"
)
- assert [(-5, 5.0), (5, 6.0)] == client.ts().range(
+ assert [(0, 5.0), (5, 6.0)] == client.ts().range(
1, 0, 10, aggregation_type="count", bucket_size_msec=10, align=5
)
@@ -258,7 +258,7 @@ def test_rev_range(client):
assert [(10, 1.0), (0, 10.0)] == client.ts().revrange(
1, 0, 10, aggregation_type="count", bucket_size_msec=10, align="+"
)
- assert [(1, 10.0), (-9, 1.0)] == client.ts().revrange(
+ assert [(1, 10.0), (0, 1.0)] == client.ts().revrange(
1, 0, 10, aggregation_type="count", bucket_size_msec=10, align=1
)
@@ -345,7 +345,7 @@ def test_multi_range_advanced(client):
bucket_size_msec=10,
align=5,
)
- assert [(-5, 5.0), (5, 6.0)] == res[0]["1"][1]
+ assert [(0, 5.0), (5, 6.0)] == res[0]["1"][1]
@pytest.mark.redismod
@@ -427,7 +427,7 @@ def test_multi_reverse_range(client):
bucket_size_msec=10,
align=1,
)
- assert [(1, 10.0), (-9, 1.0)] == res[0]["1"][1]
+ assert [(1, 10.0), (0, 1.0)] == res[0]["1"][1]
@pytest.mark.redismod
