Project Description

django-override-settings provides an easy way to override settings in
Django tests.

The override_settings class can be used as either a class or
method decorator or as a context manager to temporarily override the
values of settings. After each test case has finished (when using it
as a decorator) or after the context manager has exited, it resets the
values in django.conf.settings to what they were before. This prevents
side-effects from creeping in and lets each test case run in its own
sandbox.

This package also provides two convenience functions (with_apps
and without_apps) to modify just INSTALLED_APPS as well as a
special object (SETTING_DELETED) to run tests without a given
setting defined.

The functionality in this package will eventually be superseded when
Django 1.4 is released as it will come with a built-in
override_settings. But for those maintaining pre-1.4 codebases,
hopefully this package comes in handy.