Skip to content

Commit f82ab33

Browse files
authored
Disabling JSON.DEBUG tests (#1787)
1 parent 12c17bf commit f82ab33

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

tests/test_json.py

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,14 @@ def test_strappend(client):
134134
assert "foobar" == client.json().get("jsonkey", Path.rootPath())
135135

136136

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)
145145

146146

147147
@pytest.mark.redismod
@@ -969,27 +969,27 @@ def test_toggle_dollar(client):
969969
client.json().toggle("non_existing_doc", "$..a")
970970

971971

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") == []
993993

994994

995995
@pytest.mark.redismod

0 commit comments

Comments
 (0)