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

Method test_time

tests/test_asyncio/test_commands.py:825–829  ·  view source on GitHub ↗
(self, r: redis.Redis)

Source from the content-addressed store, hash-verified

823
824 @skip_if_server_version_lt("2.6.0")
825 async def test_time(self, r: redis.Redis):
826 t = await r.time()
827 assert len(t) == 2
828 assert isinstance(t[0], int)
829 assert isinstance(t[1], int)
830
831 @pytest.mark.onlynoncluster
832 @skip_if_server_version_lt("8.5.240")

Callers

nothing calls this directly

Calls 1

timeMethod · 0.45

Tested by

no test coverage detected