Skip to content

Commit 38dae9e

Browse files
committed
fixes #33 : document the settings fixture
1 parent 2804d00 commit 38dae9e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/helpers.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,3 +153,19 @@ server's URL can be retreived using the ``live_server.url`` attribute
153153
or by requesting it's string value: ``unicode(live_server)``. You can
154154
also directly concatenate a string to form a URL: ``live_server +
155155
'/foo``.
156+
157+
``settings``
158+
~~~~~~~~~~~~
159+
160+
This fixture will provide a handle on the django settings module, and
161+
automatically revert any changes made to the settings (modifications, additions
162+
and deletions).
163+
164+
Example
165+
"""""""
166+
167+
::
168+
169+
def test_with_secific_settings(settings):
170+
settings.USE_TZ = True
171+
assert settings.USE_TZ

0 commit comments

Comments
 (0)