We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5a535f commit 32adbd0Copy full SHA for 32adbd0
tests/test_timeseries.py
@@ -1086,3 +1086,26 @@ def test_decrby_with_insertion_filters(client):
1086
data_points = client.ts().range("time-series-1", "-", "+")
1087
expected_points = [(1000, -11.1)]
1088
assert expected_points == data_points
1089
+
1090
1091
+@skip_ifmodversion_lt("1.12.0", "timeseries")
1092
+def test_madd_with_insertion_filters(client):
1093
+ client.ts().create(
1094
+ "time-series-1",
1095
+ duplicate_policy="last",
1096
+ ignore_max_time_diff=5,
1097
+ ignore_max_val_diff=10.0,
1098
+ )
1099
+ assert 1010 == client.ts().add("time-series-1", 1010, 1.0)
1100
+ assert [1010, 1010, 1020, 1021] == client.ts().madd(
1101
+ [
1102
+ ("time-series-1", 1011, 11.0),
1103
+ ("time-series-1", 1013, 10.0),
1104
+ ("time-series-1", 1020, 2.0),
1105
+ ("time-series-1", 1021, 22.0),
1106
+ ]
1107
1108
1109
+ data_points = client.ts().range("time-series-1", "-", "+")
1110
+ expected_points = [(1010, 1.0), (1020, 2.0), (1021, 22.0)]
1111
+ assert expected_points == data_points
0 commit comments