We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2804d00 commit 38dae9eCopy full SHA for 38dae9e
docs/helpers.rst
@@ -153,3 +153,19 @@ server's URL can be retreived using the ``live_server.url`` attribute
153
or by requesting it's string value: ``unicode(live_server)``. You can
154
also directly concatenate a string to form a URL: ``live_server +
155
'/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