From e881976023cfc381aeaaec580c4b10b9ba62c0b6 Mon Sep 17 00:00:00 2001 From: Chayim Date: Sun, 14 Nov 2021 12:50:06 +0200 Subject: Added breaking icon to release drafter (#1702) --- .github/release-drafter-config.yml | 2 +- tests/test_commands.py | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/.github/release-drafter-config.yml b/.github/release-drafter-config.yml index f17a299..a3a5d83 100644 --- a/.github/release-drafter-config.yml +++ b/.github/release-drafter-config.yml @@ -15,7 +15,7 @@ autolabeler: branch: - '/feature-.+' categories: - - title: 'Breaking Changes' + - title: '🔥 Breaking Changes' labels: - 'breakingchange' - title: '🚀 New Features' diff --git a/tests/test_commands.py b/tests/test_commands.py index df561d4..6cb1a78 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -1208,6 +1208,12 @@ class TestRedisCommands: value1 = 'ohmytext' value2 = 'mynewtext' res = 'mytext' + + if skip_if_redis_enterprise(None).args[0] is True: + with pytest.raises(redis.exceptions.ResponseError): + assert r.stralgo('LCS', value1, value2) == res + return + # test LCS of strings assert r.stralgo('LCS', value1, value2) == res # test using keys @@ -1250,6 +1256,12 @@ class TestRedisCommands: def test_substr(self, r): r['a'] = '0123456789' + + if skip_if_redis_enterprise(None).args[0] is True: + with pytest.raises(redis.exceptions.ResponseError): + assert r.substr('a', 0) == b'0123456789' + return + assert r.substr('a', 0) == b'0123456789' assert r.substr('a', 2) == b'23456789' assert r.substr('a', 3, 5) == b'345' @@ -3617,6 +3629,11 @@ class TestRedisCommands: @skip_if_server_version_lt('4.0.0') def test_memory_malloc_stats(self, r): + if skip_if_redis_enterprise(None).args[0] is True: + with pytest.raises(redis.exceptions.ResponseError): + assert r.memory_malloc_stats() + return + assert r.memory_malloc_stats() @skip_if_server_version_lt('4.0.0') @@ -3624,6 +3641,12 @@ class TestRedisCommands: # put a key into the current db to make sure that "db." # has data r.set('foo', 'bar') + + if skip_if_redis_enterprise(None).args[0] is True: + with pytest.raises(redis.exceptions.ResponseError): + stats = r.memory_stats() + return + stats = r.memory_stats() assert isinstance(stats, dict) for key, value in stats.items(): -- cgit v1.2.1