tox: do not run hobo tests agains django 2.2 (#49103)
This commit is contained in:
parent
cd35215b00
commit
a68c101e3b
|
@ -1,7 +1,12 @@
|
|||
import os
|
||||
|
||||
# Add corbo hobo agent
|
||||
INSTALLED_APPS = ('corbo.hobo_agent', 'hobo.agent.common') + INSTALLED_APPS
|
||||
try:
|
||||
import hobo
|
||||
INSTALLED_APPS = ('corbo.hobo_agent', 'hobo.agent.common') + INSTALLED_APPS
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
|
||||
REST_FRAMEWORK['DEFAULT_AUTHENTICATION_CLASSES'] = ['rest_framework.authentication.BasicAuthentication']
|
||||
|
||||
|
|
5
tox.ini
5
tox.ini
|
@ -14,7 +14,7 @@ setenv =
|
|||
deps =
|
||||
django111: django>=1.11,<1.12
|
||||
django22: django>=2.2,<2.3
|
||||
https://git.entrouvert.org/hobo.git/snapshot/hobo-master.tar.gz
|
||||
django111: https://git.entrouvert.org/hobo.git/snapshot/hobo-master.tar.gz
|
||||
pytest-cov
|
||||
pytest-django
|
||||
pytest
|
||||
|
@ -27,4 +27,5 @@ deps =
|
|||
mock<4
|
||||
psycopg2-binary
|
||||
commands =
|
||||
py.test {env:COVERAGE:} {posargs:tests/}
|
||||
django111: py.test {env:COVERAGE:} {posargs:tests/}
|
||||
django22: py.test {env:COVERAGE:} {posargs:--ignore=tests/test_hobo_notify.py tests/}
|
||||
|
|
Reference in New Issue