Skip to content

Commit dc28a4f

Browse files
committed
skip tests
1 parent f234f8b commit dc28a4f

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

tests/test_asyncio/test_commands.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1324,6 +1324,7 @@ async def test_rpushx(self, r: redis.Redis):
13241324
# SCAN COMMANDS
13251325
@skip_if_server_version_lt("2.8.0")
13261326
@pytest.mark.onlynoncluster
1327+
@skip_if_redis_enterprise()
13271328
async def test_scan(self, r: redis.Redis):
13281329
await r.set("a", 1)
13291330
await r.set("b", 2)
@@ -1336,6 +1337,7 @@ async def test_scan(self, r: redis.Redis):
13361337

13371338
@skip_if_server_version_lt(REDIS_6_VERSION)
13381339
@pytest.mark.onlynoncluster
1340+
@skip_if_redis_enterprise()
13391341
async def test_scan_type(self, r: redis.Redis):
13401342
await r.sadd("a-set", 1)
13411343
await r.hset("a-hash", "foo", 2)

tests/test_asyncio/test_json.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,7 @@ async def test_json_forget_with_dollar(decoded_r: redis.Redis):
431431

432432

433433
@pytest.mark.onlynoncluster
434+
@skip_if_redis_enterprise()
434435
async def test_json_mget_dollar(decoded_r: redis.Redis):
435436
# Test mget with multi paths
436437
await decoded_r.json().set(

tests/test_json.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,8 @@ def test_json_forget_with_dollar(client):
441441
client.json().forget("not_a_document", "..a")
442442

443443

444+
@pytest.mark.onlynoncluster
445+
@skip_if_redis_enterprise()
444446
def test_json_mget_dollar(client):
445447
# Test mget with multi paths
446448
client.json().set(
@@ -462,10 +464,13 @@ def test_json_mget_dollar(client):
462464
# Test mget with single path
463465
client.json().mget("doc1", "$..a") == [1, 3, None]
464466
# Test mget with multi path
465-
client.json().mget(["doc1", "doc2"], "$..a") == [[1, 3, None], [4, 6, [None]]]
467+
assert client.json().mget(["doc1", "doc2"], "$..a") == [
468+
[1, 3, None],
469+
[4, 6, [None]],
470+
]
466471

467472
# Test missing key
468-
client.json().mget(["doc1", "missing_doc"], "$..a") == [[1, 3, None], None]
473+
assert client.json().mget(["doc1", "missing_doc"], "$..a") == [[1, 3, None], None]
469474
res = client.json().mget(["missing_doc1", "missing_doc2"], "$..a")
470475
assert res == [None, None]
471476

0 commit comments

Comments
 (0)