freyley / django-nose

Django test runner using nose

Home Page:http://pypi.python.org/pypi/django-nose

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Requirements

This package is most useful when installed with:

  • Django
  • nosetests

Upgrading from Django < 1.2

Django 1.2 switches to a class-based test runner. To use django-nose with Django 1.2, change your TEST_RUNNER from django_nose.run_tests to django_nose.NoseTestSuiteRunner.

django_nose.run_tests will continue to work in Django 1.2, but will raise a warning. In Django 1.3 it will stop working.

If you were using django_nose.run_gis_tests, you should also switch to django_nose.NoseTestSuiteRunner and use one of the spatial backends in your DATABASES settings.

Installation

You can get django-nose from pypi with:

pip install django-nose

The development version can be installed with:

pip install -e git://github.com/jbalogh/django-nose.git#egg=django-nose

Since django-nose extends Django's built-in test command, you should add it to your INSTALLED_APPS in settings.py:

INSTALLED_APPS = (
    ...
    'django_nose',
    ...
)

Then set TEST_RUNNER in settings.py:

TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'

Usage

See django help test for all the options nose provides, and look to the nose docs for more help with nose.

Caveats

South installs its own test command that turns off migrations during testing. Make sure that django_nose comes after south in INSTALLED_APPS so that django_nose's test command is used.

About

Django test runner using nose

http://pypi.python.org/pypi/django-nose

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 89.9%Language:Shell 10.1%