File tree 2 files changed +14
-0
lines changed
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:
743
743
def command_count (self , ** kwargs ) -> ResponseT :
744
744
return self .execute_command ("COMMAND COUNT" , ** kwargs )
745
745
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
+
746
755
def config_get (self , pattern : PatternT = "*" , ** kwargs ) -> ResponseT :
747
756
"""
748
757
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):
4239
4239
assert isinstance (res , int )
4240
4240
assert res >= 100
4241
4241
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
+
4242
4247
@pytest .mark .onlynoncluster
4243
4248
@skip_if_server_version_lt ("2.8.13" )
4244
4249
def test_command_getkeys (self , r ):
You can’t perform that action at this time.
0 commit comments