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

Function test_hpexpire_nonexistent_key_or_field

tests/test_hash.py:120–124  ·  view source on GitHub ↗
(r)

Source from the content-addressed store, hash-verified

118
119@skip_if_server_version_lt("7.3.240")
120def test_hpexpire_nonexistent_key_or_field(r):
121 r.delete("test:hash")
122 assert r.hpexpire("test:hash", 500, "field1") == [-2]
123 r.hset("test:hash", "field1", "value1")
124 assert r.hpexpire("test:hash", 500, "nonexistent_field") == [-2]
125
126
127@skip_if_server_version_lt("7.3.240")

Callers

nothing calls this directly

Calls 3

hpexpireMethod · 0.80
hsetMethod · 0.80
deleteMethod · 0.45

Tested by

no test coverage detected