diff --git a/.travis.yml b/.travis.yml index 976a3b6..8fc1d59 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,9 +5,16 @@ python: env: - DJANGO_VERSION=1.6.11 - DJANGO_VERSION=1.7.7 + - DJANGO_VERSION=1.8.18 + - DJANGO_VERSION=1.11.1 matrix: exclude: - python: "2.6" env: DJANGO_VERSION=1.7.7 -install: pip install -q Django==$DJANGO_VERSION djangorestframework==3.2.5 + - python: "2.6" + env: DJANGO_VERSION=1.8.18 + - python: "2.6" + env: DJANGO_VERSION=1.11.1 + +install: pip install -q Django==$DJANGO_VERSION djangorestframework==3.6.2 script: python setup.py test diff --git a/runtests.py b/runtests.py index 0d8ecc6..ba2e89d 100644 --- a/runtests.py +++ b/runtests.py @@ -37,8 +37,14 @@ ENGINE = 'django.db.backends.sqlite3' ) ), - ROOT_URLCONF = 'djangodav.tests.urls', - MIDDLEWARE_CLASSES = () + # ROOT_URLCONF = 'djangodav.tests.urls', + MIDDLEWARE_CLASSES = (), + TEMPLATES = ( + dict( + BACKEND = 'django.template.backends.django.DjangoTemplates', + APP_DIRS = True + ), + ) ) diff --git a/setup.py b/setup.py index 265c2d1..41d6713 100644 --- a/setup.py +++ b/setup.py @@ -46,7 +46,7 @@ 'Topic :: Software Development :: Libraries :: Python Modules' ], install_requires=["lxml", "Django>=1.3.0"], - tests_require=["Django>=1.3.0", "mock==1.0.1"], + tests_require=["Django>=1.3.0", "mock==1.0.1", "djangorestframework==3.6.2"], include_package_data=True, zip_safe=False, test_suite='runtests.runtests'