diff options
| author | Florian Apolloner <florian@apolloner.eu> | 2013-03-13 23:36:15 +0100 |
|---|---|---|
| committer | Florian Apolloner <florian@apolloner.eu> | 2013-03-13 23:36:15 +0100 |
| commit | 8a2f5300b21c3c20a9fc6829d9fcadb023cba4a8 (patch) | |
| tree | 5c74fd505db05055dcddc10e4a28a512deb4b3d0 /docs | |
| parent | 22b7870e40a3ecf022b423de6cd867dcb35a6940 (diff) | |
| parent | 50eb70b08fae48445a52680b2d07a9535b25e3c5 (diff) | |
Merge branch 'master' of github.com:django/django
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/testing/overview.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/topics/testing/overview.txt b/docs/topics/testing/overview.txt index b917086e06..cb1c8dc52a 100644 --- a/docs/topics/testing/overview.txt +++ b/docs/topics/testing/overview.txt @@ -1415,6 +1415,14 @@ The decorator can also be applied to test case classes:: the original ``LoginTestCase`` is still equally affected by the decorator. +You can also simulate the absence of a setting by deleting it after settings +have been overriden, like this:: + + @override_settings() + def test_something(self): + del settings.LOGIN_URL + ... + When overriding settings, make sure to handle the cases in which your app's code uses a cache or similar feature that retains state even if the setting is changed. Django provides the |
