Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added Django 1.4.X tox config section.

  • Loading branch information...
commit f576dcdb581a7ff7c00150c65658732c2b330765 1 parent 697dbd1
@jezdez jezdez authored
Showing with 48 additions and 1 deletion.
  1. +10 −1 compressor/test_settings.py
  2. +38 −0 tox.ini
View
11 compressor/test_settings.py
@@ -1,10 +1,19 @@
import os
+import django
TEST_DIR = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'tests')
COMPRESS_CACHE_BACKEND = 'locmem://'
-DATABASE_ENGINE = 'sqlite3'
+if django.VERSION[:2] > (1, 3):
+ DATABASES = {
+ 'default': {
+ 'ENGINE': 'django.db.backends.sqlite3',
+ 'NAME': ':memory:',
+ }
+ }
+else:
+ DATABASE_ENGINE = 'sqlite3'
INSTALLED_APPS = [
'compressor',
View
38 tox.ini
@@ -93,3 +93,41 @@ deps =
jinja2
django==1.3.1
+[testenv:py25-1.4.X]
+basepython = python2.5
+deps =
+ unittest2
+ BeautifulSoup==3.2.0
+ html5lib
+ pep8
+ pyflakes
+ django-jenkins
+ mock
+ jinja2
+ https://github.com/django/django/zipball/master
+
+[testenv:py26-1.4.X]
+basepython = python2.6
+deps =
+ unittest2
+ BeautifulSoup==3.2.0
+ html5lib
+ pep8
+ pyflakes
+ django-jenkins
+ mock
+ jinja2
+ https://github.com/django/django/zipball/master
+
+[testenv:py27-1.4.X]
+basepython = python2.7
+deps =
+ unittest2
+ BeautifulSoup==3.2.0
+ html5lib
+ pep8
+ pyflakes
+ django-jenkins
+ mock
+ jinja2
+ https://github.com/django/django/zipball/master
Please sign in to comment.
Something went wrong with that request. Please try again.