File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 99import uuid
1010
1111from redis import StrictRedis , ConnectionError , TimeoutError
12- from redis .client import Script
12+ try : # Redis < 4.1.0
13+ from redis .client import Script
14+ except ImportError : # Redis >= 4.1.0
15+ from redis .commands .core import Script
1316
1417from ..brokers .base import Broker
1518from ..job import Job , JobStatus
Original file line number Diff line number Diff line change 99usedevelop = True
1010whitelist_externals =
1111 docker-compose
12- sh
1312deps =
1413 pytest
1514 pytest-cov
@@ -23,6 +22,6 @@ commands =
2322 pycodestyle --ignore =E252,W503,W504 spinach tests
2423
2524[testenv:py3]
26- commands =
27- docker-compose -f {toxinidir}/tests/docker-compose.yml up -d
28- sh -c ' pytest tests {posargs}; stat=$?; docker-compose -f {toxinidir}/tests/docker-compose.yml down; exit $stat '
25+ commands_pre = docker-compose -f {toxinidir}/tests/docker-compose.yml up -d
26+ commands = pytest tests {posargs}
27+ commands_post = docker-compose -f {toxinidir}/tests/docker-compose.yml down
You can’t perform that action at this time.
0 commit comments