diff options
| author | Baptiste Mispelon <bmispelon@gmail.com> | 2014-01-22 22:26:10 +0100 |
|---|---|---|
| committer | Baptiste Mispelon <bmispelon@gmail.com> | 2014-01-22 22:26:10 +0100 |
| commit | 05d36dc06e6d767bb28993c65a54b703f319a386 (patch) | |
| tree | ed2af78f1307dda6b029d866f40bf2244705733e /docs/topics/testing | |
| parent | 79e1d6ebd70898d514a44b85648e3d24104c4243 (diff) | |
Always use parentheses when documenting a method with no arguments.
Diffstat (limited to 'docs/topics/testing')
| -rw-r--r-- | docs/topics/testing/tools.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt index 8db371f7b6..49d4c10bbb 100644 --- a/docs/topics/testing/tools.txt +++ b/docs/topics/testing/tools.txt @@ -1036,7 +1036,7 @@ If ``multi_db=True``, fixtures are loaded into all databases. Overriding settings ~~~~~~~~~~~~~~~~~~~ -.. method:: SimpleTestCase.settings +.. method:: SimpleTestCase.settings() For testing purposes it's often useful to change a setting temporarily and revert to the original value after running the testing code. For this use case @@ -1061,7 +1061,7 @@ Django provides a standard Python context manager (see :pep:`343`) called This example will override the :setting:`LOGIN_URL` setting for the code in the ``with`` block and reset its value to the previous state afterwards. -.. method:: SimpleTestCase.modify_settings +.. method:: SimpleTestCase.modify_settings() .. versionadded:: 1.7 |
