From 38dae9ee647512cc50ec886febf5fe495bd18b4f Mon Sep 17 00:00:00 2001 From: Mathieu Agopian Date: Sat, 6 Jul 2013 15:40:04 +0200 Subject: [PATCH] fixes #33 : document the settings fixture --- docs/helpers.rst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/helpers.rst b/docs/helpers.rst index 0481f1cbd..00068475c 100644 --- a/docs/helpers.rst +++ b/docs/helpers.rst @@ -153,3 +153,19 @@ server's URL can be retreived using the ``live_server.url`` attribute or by requesting it's string value: ``unicode(live_server)``. You can also directly concatenate a string to form a URL: ``live_server + '/foo``. + +``settings`` +~~~~~~~~~~~~ + +This fixture will provide a handle on the django settings module, and +automatically revert any changes made to the settings (modifications, additions +and deletions). + +Example +""""""" + +:: + + def test_with_secific_settings(settings): + settings.USE_TZ = True + assert settings.USE_TZ