diff options
author | Chayim <chayim@users.noreply.github.com> | 2021-12-13 11:27:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-13 11:27:40 +0200 |
commit | f82ab336c3e249ee871ee5e50e10c0de08c4f38a (patch) | |
tree | 7eb0a6649ee19023adee999b84a6b73ed70ffa39 | |
parent | 12c17bfc436ea6784bbc8b2d327d981520858eb7 (diff) | |
download | redis-py-f82ab336c3e249ee871ee5e50e10c0de08c4f38a.tar.gz |
Disabling JSON.DEBUG tests (#1787)
-rw-r--r-- | tests/test_json.py | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/tests/test_json.py b/tests/test_json.py index 1686f9d..a99547d 100644 --- a/tests/test_json.py +++ b/tests/test_json.py @@ -134,14 +134,14 @@ def test_strappend(client): assert "foobar" == client.json().get("jsonkey", Path.rootPath()) -@pytest.mark.redismod -def test_debug(client): - client.json().set("str", Path.rootPath(), "foo") - assert 24 == client.json().debug("MEMORY", "str", Path.rootPath()) - assert 24 == client.json().debug("MEMORY", "str") - - # technically help is valid - assert isinstance(client.json().debug("HELP"), list) +# @pytest.mark.redismod +# def test_debug(client): +# client.json().set("str", Path.rootPath(), "foo") +# assert 24 == client.json().debug("MEMORY", "str", Path.rootPath()) +# assert 24 == client.json().debug("MEMORY", "str") +# +# # technically help is valid +# assert isinstance(client.json().debug("HELP"), list) @pytest.mark.redismod @@ -969,27 +969,27 @@ def test_toggle_dollar(client): client.json().toggle("non_existing_doc", "$..a") -@pytest.mark.redismod -def test_debug_dollar(client): - - jdata, jtypes = load_types_data("a") - - client.json().set("doc1", "$", jdata) - - # Test multi - assert client.json().debug("MEMORY", "doc1", "$..a") == [72, 24, 24, 16, 16, 1, 0] - - # Test single - assert client.json().debug("MEMORY", "doc1", "$.nested2.a") == [24] - - # Test legacy - assert client.json().debug("MEMORY", "doc1", "..a") == 72 - - # Test missing path (defaults to root) - assert client.json().debug("MEMORY", "doc1") == 72 - - # Test missing key - assert client.json().debug("MEMORY", "non_existing_doc", "$..a") == [] +# @pytest.mark.redismod +# def test_debug_dollar(client): +# +# jdata, jtypes = load_types_data("a") +# +# client.json().set("doc1", "$", jdata) +# +# # Test multi +# assert client.json().debug("MEMORY", "doc1", "$..a") == [72, 24, 24, 16, 16, 1, 0] +# +# # Test single +# assert client.json().debug("MEMORY", "doc1", "$.nested2.a") == [24] +# +# # Test legacy +# assert client.json().debug("MEMORY", "doc1", "..a") == 72 +# +# # Test missing path (defaults to root) +# assert client.json().debug("MEMORY", "doc1") == 72 +# +# # Test missing key +# assert client.json().debug("MEMORY", "non_existing_doc", "$..a") == [] @pytest.mark.redismod |