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

Method test_encoder

tests/test_scripting.py:51–54  ·  view source on GitHub ↗
(self, r, script_bytes)

Source from the content-addressed store, hash-verified

49 assert script.sha == "1329344e6bf995a35a8dc57ab1a6af8b2d54a763"
50
51 def test_encoder(self, r, script_bytes):
52 encoder = Script(r, script_bytes).get_encoder()
53 assert encoder is not None
54 assert encoder.encode("fake-script") == b"fake-script"
55
56
57class TestScripting:

Callers

nothing calls this directly

Calls 3

ScriptClass · 0.90
encodeMethod · 0.80
get_encoderMethod · 0.45

Tested by

no test coverage detected