MCPcopy
hub / github.com/redis/redis-py / test_alter_duplicate_policy

Function test_alter_duplicate_policy

tests/test_timeseries.py:108–118  ·  view source on GitHub ↗
(client)

Source from the content-addressed store, hash-verified

106@skip_ifmodversion_lt("1.4.0", "timeseries")
107@skip_if_server_version_lt("7.9.0")
108def test_alter_duplicate_policy(client):
109 assert client.ts().create(1)
110 info = client.ts().info(1)
111 assert_resp_response(
112 client, "block", info.get("duplicate_policy"), info.get("duplicatePolicy")
113 )
114 assert client.ts().alter(1, duplicate_policy="min")
115 info = client.ts().info(1)
116 assert_resp_response(
117 client, "min", info.get("duplicate_policy"), info.get("duplicatePolicy")
118 )
119
120
121@pytest.mark.redismod

Callers

nothing calls this directly

Calls 6

assert_resp_responseFunction · 0.85
alterMethod · 0.80
createMethod · 0.45
tsMethod · 0.45
infoMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected