From 9db1eec71b443b8e7e74ff503bae651dc6edf411 Mon Sep 17 00:00:00 2001 From: Bar Shaul <88437685+barshaul@users.noreply.github.com> Date: Thu, 25 Nov 2021 14:15:24 +0200 Subject: Adding RedisCluster client to support Redis Cluster Mode (#1660) Co-authored-by: Chayim Co-authored-by: Anas --- tasks.py | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'tasks.py') diff --git a/tasks.py b/tasks.py index 306291c..138ca69 100644 --- a/tasks.py +++ b/tasks.py @@ -40,7 +40,24 @@ def tests(c): """Run the redis-py test suite against the current python, with and without hiredis. """ - run("tox -e plain -e hiredis") + print("Starting Redis tests") + run("tox -e '{redis,cluster}'-'{plain,hiredis}'") + + +@task +def redis_tests(c): + """Run all Redis tests against the current python, + with and without hiredis.""" + print("Starting Redis tests") + run("tox -e redis-'{hiredis}'") + + +@task +def cluster_tests(c): + """Run all Redis Cluster tests against the current python, + with and without hiredis.""" + print("Starting RedisCluster tests") + run("tox -e cluster-'{plain,hiredis}'") @task -- cgit v1.2.1 From 20c5f0fa4676c4f0fde778dae81c3f96078348b5 Mon Sep 17 00:00:00 2001 From: Chayim Date: Thu, 25 Nov 2021 15:37:58 +0200 Subject: Fixing COMMAND GETKEYS tests (#1750) --- tasks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tasks.py') diff --git a/tasks.py b/tasks.py index 138ca69..137d177 100644 --- a/tasks.py +++ b/tasks.py @@ -41,15 +41,15 @@ def tests(c): with and without hiredis. """ print("Starting Redis tests") - run("tox -e '{redis,cluster}'-'{plain,hiredis}'") + run("tox -e '{standalone,cluster}'-'{plain,hiredis}'") @task -def redis_tests(c): +def standalone_tests(c): """Run all Redis tests against the current python, with and without hiredis.""" print("Starting Redis tests") - run("tox -e redis-'{hiredis}'") + run("tox -e standalone-'{hiredis}'") @task -- cgit v1.2.1 From f4519f3b7f1f7314b5d342be989df1c4365954b9 Mon Sep 17 00:00:00 2001 From: Chayim Date: Thu, 25 Nov 2021 16:03:30 +0200 Subject: Splitting documentation for read the docs (#1743) --- tasks.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tasks.py') diff --git a/tasks.py b/tasks.py index 137d177..e482194 100644 --- a/tasks.py +++ b/tasks.py @@ -20,6 +20,12 @@ def devenv(c): run(cmd) +@task +def build_docs(c): + """Generates the sphinx documentation.""" + run("tox -e docs") + + @task def linters(c): """Run code linters""" -- cgit v1.2.1