﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
17647	Documentation Bug: override_settings() not in 1.30	glen@…	nobody	"According to the documentation for Django 1.3 (confirmed Django 1.3 in 'Version' drop down box on page load):

https://docs.djangoproject.com/en/dev/topics/testing/

In case you want to override a setting for just one test method or even the whole TestCase class, Django provides the override_settings() decorator (see PEP 318). It's used like this:
...
from django.test.utils import override_settings

However, this is not available in 1.3


{{{
(glenjarvis)Pokey.local> ./manage.py shell
Python 2.6.1 (r261:67515, Aug  2 2010, 20:10:18) 
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type ""help"", ""copyright"", ""credits"" or ""license"" for more information.
(InteractiveConsole)
>>> import django
>>> print django.VERSION
(1, 3, 0, 'final', 0)
>>> from django.test.utils import override_settings
Traceback (most recent call last):
  File ""<console>"", line 1, in <module>
ImportError: cannot import name override_settings
}}}

I have verified, however, that this is available in 1.4 Alpha:
{{{
(django14)Pokey.local> python manage.py shell
Python 2.6.1 (r261:67515, Aug  2 2010, 20:10:18) 
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type ""help"", ""copyright"", ""credits"" or ""license"" for more information.
(InteractiveConsole)
>>> import django
>>> print django.VERSION
(1, 4, 0, 'alpha', 1)
>>> from django.test.utils import override_settings
>>> 
}}}

Therefore, this is just a documentation error for version."	Bug	closed	Documentation	1.3	Normal	invalid	override_settings		Unreviewed	0	0	0	0	1	0
