Running the tests on Debian
|Reported by:||Owned by:||nobody|
|Severity:||Keywords:||Debian tests runtests.py|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I suggest adding this somewhere in http://www.djangoproject.com/documentation/contributing/. This belongs with the "Running the unit tests" Perhaps have a separate section for distribution specific information? An alternative would be some wiki page, but I'm not sure where.
To run the Django tests on Debian, since Debian does not currently have the tests installed, it is necessary to do the following.
Install some version (I used 0.96+svn6373-1), which is the most recent packaged version available at time writing
apt-get source python-django=0.96+svn6373-1
python runtests.py --settings=django.conf.project_template.settings
If is simplest to use sqlite3 for the database. In that case, it is necessary to edit /usr/share/python-support/python-django/django/conf/project_template/settings.py
and add DATABASE_ENGINE = 'sqlite3' and also install python-pysqlite2.