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

Function test_hgetex_invalid_inputs

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

Source from the content-addressed store, hash-verified

451
452@skip_if_server_version_lt("7.9.0")
453def test_hgetex_invalid_inputs(r):
454 with pytest.raises(exceptions.DataError):
455 r.hgetex("b", "foo", "1", "3", ex=10, persist=True)
456
457 with pytest.raises(exceptions.DataError):
458 r.hgetex("b", "foo", ex=10.0, persist=True)
459
460 with pytest.raises(exceptions.DataError):
461 r.hgetex("b", "foo", ex=10, px=6000)
462
463 with pytest.raises(exceptions.DataError):
464 r.hgetex("b", ex=10)
465
466
467@skip_if_server_version_lt("7.9.0")

Callers

nothing calls this directly

Calls 1

hgetexMethod · 0.80

Tested by

no test coverage detected