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

Method test_hdel

tests/test_commands.py:5427–5432  ·  view source on GitHub ↗
(self, r)

Source from the content-addressed store, hash-verified

5425 r.hset("x")
5426
5427 def test_hdel(self, r):
5428 r.hset("a", mapping={"1": 1, "2": 2, "3": 3})
5429 assert r.hdel("a", "2") == 1
5430 assert r.hget("a", "2") is None
5431 assert r.hdel("a", "1", "3") == 2
5432 assert r.hlen("a") == 0
5433
5434 def test_hexists(self, r):
5435 r.hset("a", mapping={"1": 1, "2": 2, "3": 3})

Callers

nothing calls this directly

Calls 4

hsetMethod · 0.80
hdelMethod · 0.80
hgetMethod · 0.80
hlenMethod · 0.80

Tested by

no test coverage detected