File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -743,6 +743,15 @@ def command_info(self, **kwargs) -> None:
743743 def command_count (self , ** kwargs ) -> ResponseT :
744744 return self .execute_command ("COMMAND COUNT" , ** kwargs )
745745
746+ def command_docs (self , * args ):
747+ """
748+ This function throws a NotImplementedError since it is intentionally
749+ not supported.
750+ """
751+ raise NotImplementedError (
752+ "COMMAND DOCS is intentionally not implemented in the client."
753+ )
754+
746755 def config_get (self , pattern : PatternT = "*" , ** kwargs ) -> ResponseT :
747756 """
748757 Return a dictionary of configuration based on the ``pattern``
Original file line number Diff line number Diff line change @@ -4239,6 +4239,11 @@ def test_command_count(self, r):
42394239 assert isinstance (res , int )
42404240 assert res >= 100
42414241
4242+ @skip_if_server_version_lt ("7.0.0" )
4243+ def test_command_docs (self , r ):
4244+ with pytest .raises (NotImplementedError ):
4245+ r .command_docs ("set" )
4246+
42424247 @pytest .mark .onlynoncluster
42434248 @skip_if_server_version_lt ("2.8.13" )
42444249 def test_command_getkeys (self , r ):
You can’t perform that action at this time.
0 commit comments