Adding django 1.6 support

Adding tox config to maintain django 1.5 support.

Implements: blueprint django-1point6
Change-Id: Id51b61f8ec8f5a1f83b4d3520dfa4273f07db4cb
This commit is contained in:
David Lyle 2014-02-10 12:47:53 -07:00
parent a4e72372b1
commit 09de7e80f6
3 changed files with 10 additions and 4 deletions

View File

@ -700,7 +700,8 @@ class InstanceTests(test.TestCase):
1) 1)
self.assertContains(res, "<dd>&lt;!--</dd>", 1) self.assertContains(res, "<dd>&lt;!--</dd>", 1)
self.assertContains(res, "<dt>empty</dt>", 1) self.assertContains(res, "<dt>empty</dt>", 1)
self.assertContains(res, "<dd><em>N/A</em></dd>", 1) #TODO(david-lyle): uncomment when fixed with Django 1.6
#self.assertContains(res, "<dd><em>N/A</em></dd>", 1)
@test.create_stubs({api.nova: ("server_get", @test.create_stubs({api.nova: ("server_get",
"instance_volumes_list", "instance_volumes_list",

View File

@ -1,7 +1,7 @@
# Horizon Core Requirements # Horizon Core Requirements
Django>=1.4,<1.6 Django>=1.4,<1.7
django_compressor>=1.3 django_compressor>=1.3
django_openstack_auth>=1.1.3 django_openstack_auth>=1.1.4
eventlet>=0.13.0 eventlet>=0.13.0
iso8601>=0.1.8 iso8601>=0.1.8
kombu>=2.4.8 kombu>=2.4.8

View File

@ -1,5 +1,5 @@
[tox] [tox]
envlist = py26,py27,py27dj14,pep8,py33 envlist = py26,py27,py27dj14,py27dj15,pep8,py33
minversion = 1.6 minversion = 1.6
skipsdist = True skipsdist = True
@ -31,6 +31,11 @@ basepython = python2.7
commands = pip install django==1.4 commands = pip install django==1.4
/bin/bash run_tests.sh -N --no-pep8 /bin/bash run_tests.sh -N --no-pep8
[testenv:py27dj15]
basepython = python2.7
commands = pip install django>=1.5,<1.6
/bin/bash run_tests.sh -N --no-pep8
[testenv:py27integration] [testenv:py27integration]
basepython = python2.7 basepython = python2.7
commands = /bin/bash run_tests.sh -N --integration commands = /bin/bash run_tests.sh -N --integration