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

Function expects_resp2_shape

tests/conftest.py:876–878  ·  view source on GitHub ↗

Return ``True`` when Python responses on ``r`` use RESP2 shapes.

(r)

Source from the content-addressed store, hash-verified

874
875
876def expects_resp2_shape(r):
877 """Return ``True`` when Python responses on ``r`` use RESP2 shapes."""
878 return expected_response_shape(r) == "legacy_resp2"
879
880
881def expects_resp3_shape(r):

Callers 15

test_multi_rangeFunction · 0.90
test_multi_reverse_rangeFunction · 0.90
test_mgetFunction · 0.90
test_clientMethod · 0.90
test_scoresMethod · 0.90
test_stopwordsMethod · 0.90

Calls 1

expected_response_shapeFunction · 0.85

Tested by

no test coverage detected