diff --git a/python/copy_scripts.sh b/python/copy_scripts.sh new file mode 100755 index 0000000000..486d65cbb8 --- /dev/null +++ b/python/copy_scripts.sh @@ -0,0 +1,2 @@ +#!/bin/bash +cp -r ../rawScripts/. ./bullmq/commands/ || echo "Raw scripts are not available. Create them by running ' yarn install' and/or ' yarn generate:raw:scripts'" diff --git a/python/flush_redis.py b/python/flush_redis.py new file mode 100644 index 0000000000..8139a0943d --- /dev/null +++ b/python/flush_redis.py @@ -0,0 +1,11 @@ +import asyncio + +from bullmq.redis_connection import RedisConnection + + +async def flush(): + await RedisConnection().conn.flushall() + + +if __name__ == '__main__': + asyncio.run(flush()) diff --git a/python/run_tests.sh b/python/run_tests.sh index 90720218ac..ec7e987dd9 100755 --- a/python/run_tests.sh +++ b/python/run_tests.sh @@ -1,8 +1,3 @@ #!/bin/bash -redis-cli flushall -python3 -m unittest -v tests.bulk_tests -python3 -m unittest -v tests.delay_tests -python3 -m unittest -v tests.flow_tests -python3 -m unittest -v tests.job_tests -python3 -m unittest -v tests.queue_tests -python3 -m unittest -v tests.worker_tests \ No newline at end of file +python flush_redis.py +python -m unittest discover -s tests/ -p "*_tests.py" -t . \ No newline at end of file