@@ -134,14 +134,14 @@ def test_strappend(client):
134
134
assert "foobar" == client .json ().get ("jsonkey" , Path .rootPath ())
135
135
136
136
137
- @pytest .mark .redismod
138
- def test_debug (client ):
139
- client .json ().set ("str" , Path .rootPath (), "foo" )
140
- assert 24 == client .json ().debug ("MEMORY" , "str" , Path .rootPath ())
141
- assert 24 == client .json ().debug ("MEMORY" , "str" )
142
-
143
- # technically help is valid
144
- assert isinstance (client .json ().debug ("HELP" ), list )
137
+ # @pytest.mark.redismod
138
+ # def test_debug(client):
139
+ # client.json().set("str", Path.rootPath(), "foo")
140
+ # assert 24 == client.json().debug("MEMORY", "str", Path.rootPath())
141
+ # assert 24 == client.json().debug("MEMORY", "str")
142
+ #
143
+ # # technically help is valid
144
+ # assert isinstance(client.json().debug("HELP"), list)
145
145
146
146
147
147
@pytest .mark .redismod
@@ -969,27 +969,27 @@ def test_toggle_dollar(client):
969
969
client .json ().toggle ("non_existing_doc" , "$..a" )
970
970
971
971
972
- @pytest .mark .redismod
973
- def test_debug_dollar (client ):
974
-
975
- jdata , jtypes = load_types_data ("a" )
976
-
977
- client .json ().set ("doc1" , "$" , jdata )
978
-
979
- # Test multi
980
- assert client .json ().debug ("MEMORY" , "doc1" , "$..a" ) == [72 , 24 , 24 , 16 , 16 , 1 , 0 ]
981
-
982
- # Test single
983
- assert client .json ().debug ("MEMORY" , "doc1" , "$.nested2.a" ) == [24 ]
984
-
985
- # Test legacy
986
- assert client .json ().debug ("MEMORY" , "doc1" , "..a" ) == 72
987
-
988
- # Test missing path (defaults to root)
989
- assert client .json ().debug ("MEMORY" , "doc1" ) == 72
990
-
991
- # Test missing key
992
- assert client .json ().debug ("MEMORY" , "non_existing_doc" , "$..a" ) == []
972
+ # @pytest.mark.redismod
973
+ # def test_debug_dollar(client):
974
+ #
975
+ # jdata, jtypes = load_types_data("a")
976
+ #
977
+ # client.json().set("doc1", "$", jdata)
978
+ #
979
+ # # Test multi
980
+ # assert client.json().debug("MEMORY", "doc1", "$..a") == [72, 24, 24, 16, 16, 1, 0]
981
+ #
982
+ # # Test single
983
+ # assert client.json().debug("MEMORY", "doc1", "$.nested2.a") == [24]
984
+ #
985
+ # # Test legacy
986
+ # assert client.json().debug("MEMORY", "doc1", "..a") == 72
987
+ #
988
+ # # Test missing path (defaults to root)
989
+ # assert client.json().debug("MEMORY", "doc1") == 72
990
+ #
991
+ # # Test missing key
992
+ # assert client.json().debug("MEMORY", "non_existing_doc", "$..a") == []
993
993
994
994
995
995
@pytest .mark .redismod
0 commit comments