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

Function test_json_set_fpha_case_insensitive

tests/test_json.py:119–125  ·  view source on GitHub ↗

Test JSON.SET FPHA type is case-insensitive.

(client)

Source from the content-addressed store, hash-verified

117@pytest.mark.redismod
118@skip_if_server_version_lt("8.7.0")
119def test_json_set_fpha_case_insensitive(client):
120 """Test JSON.SET FPHA type is case-insensitive."""
121 fp_array = [1.1, 2.2, 3.3]
122 # Lowercase should work
123 assert client.json().set("fpha_lower", Path.root_path(), fp_array, fpha="fp32")
124 # Mixed case should work
125 assert client.json().set("fpha_mixed", Path.root_path(), fp_array, fpha="Fp64")
126
127
128@pytest.mark.redismod

Callers

nothing calls this directly

Calls 3

root_pathMethod · 0.80
setMethod · 0.45
jsonMethod · 0.45

Tested by

no test coverage detected