test-requirements.txt is pulling django 1.6 and braking unittests

Bug #1251247 reported by Yves-Gwenael Bourhis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
New
Undecided
Unassigned

Bug Description

"pip install -Ur test-requirements.txt" pulls django-nose, and django-nose pulls django 1.6 even though we have "Django>=1.4,<1.6" in test-requirements.txt:

Downloading/unpacking Django>=1.2 from https://pypi.python.org/packages/source/D/Django/Django-1.6.tar.gz#md5=65db1bc313124c3754c89073942e38a8 (from django-nose->-r test-requirements.txt (line 5))

runing "./run_tests.sh" in a new environment pulls test-requirements.txt and unittests fail in .venv/local/lib/python2.7/site-packages/openstack_auth/urls.py", line 14 "from django.conf.urls.defaults import patterns, url" : ImportError: No module named defaults

runing "pip install -Ur requirements.txt" after "pip install -Ur test-requirements.txt" (and before launching ./run_tests.sh) fixes the issue by downgrading the django version.

Revision history for this message
Yves-Gwenael Bourhis (yves-gwenael-bourhis) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.