Force pytest-django verison for testing compatibility with Django 1.6

This commit is contained in:
Syrus Akbary 2016-09-17 18:45:08 -07:00
parent 459e390b47
commit dd6c5d1611
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ before_install:
install: install:
- | - |
if [ "$TEST_TYPE" = build ]; then if [ "$TEST_TYPE" = build ]; then
pip install pytest==3.0.2 pytest-cov pytest-benchmark coveralls six pytest-django mock django-filter pip install pytest==3.0.2 pytest-cov pytest-benchmark coveralls six pytest-django==2.9.1 mock django-filter
pip install django==$DJANGO_VERSION pip install django==$DJANGO_VERSION
pip install -e . pip install -e .
python setup.py develop python setup.py develop

View File

@ -42,7 +42,7 @@ setup(
tests_require=[ tests_require=[
'django-filter>=0.10.0', 'django-filter>=0.10.0',
'pytest', 'pytest',
'pytest-django', 'pytest-django==2.9.1',
'mock', 'mock',
# Required for Django postgres fields testing # Required for Django postgres fields testing
'psycopg2', 'psycopg2',