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

Function test_hsetex_invalid_inputs

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

Source from the content-addressed store, hash-verified

604
605@skip_if_server_version_lt("7.9.0")
606def test_hsetex_invalid_inputs(r):
607 with pytest.raises(exceptions.DataError):
608 r.hsetex("b", "foo", "bar", ex=10.0)
609
610 with pytest.raises(exceptions.DataError):
611 r.hsetex("b", None, None)
612
613 with pytest.raises(exceptions.DataError):
614 r.hsetex("b", "foo", "bar", items=["i1", 11, "i2"], px=6000)
615
616 with pytest.raises(exceptions.DataError):
617 r.hsetex("b", "foo", "bar", ex=10, keepttl=True)

Callers

nothing calls this directly

Calls 1

hsetexMethod · 0.80

Tested by

no test coverage detected