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

Method test_keys

tests/test_commands.py:2383–2390  ·  view source on GitHub ↗
(self, r)

Source from the content-addressed store, hash-verified

2381
2382 @pytest.mark.onlynoncluster
2383 def test_keys(self, r):
2384 assert r.keys() == []
2385 keys_with_underscores = {b"test_a", b"test_b"}
2386 keys = keys_with_underscores.union({b"testc"})
2387 for key in keys:
2388 r[key] = 1
2389 assert set(r.keys(pattern="test_*")) == keys_with_underscores
2390 assert set(r.keys(pattern="test*")) == keys
2391
2392 @pytest.mark.onlynoncluster
2393 def test_mget(self, r):

Callers

nothing calls this directly

Calls 1

keysMethod · 0.80

Tested by

no test coverage detected