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

Method test_config

tests/test_search.py:1900–1907  ·  view source on GitHub ↗
(self, client)

Source from the content-addressed store, hash-verified

1898 @skip_ifmodversion_lt("2.2.0", "search")
1899 @skip_if_server_version_gte("7.9.0")
1900 def test_config(self, client):
1901 assert client.ft().config_set("TIMEOUT", "100")
1902 with pytest.raises(redis.ResponseError):
1903 client.ft().config_set("TIMEOUT", "null")
1904 res = client.ft().config_get("*")
1905 assert "100" == res["TIMEOUT"]
1906 res = client.ft().config_get("TIMEOUT")
1907 assert "100" == res["TIMEOUT"]
1908
1909 @pytest.mark.redismod
1910 @pytest.mark.onlynoncluster

Callers

nothing calls this directly

Calls 3

config_setMethod · 0.45
ftMethod · 0.45
config_getMethod · 0.45

Tested by

no test coverage detected