diff options
| author | David Smith <smithdc@gmail.com> | 2025-05-27 17:37:22 +0100 |
|---|---|---|
| committer | nessita <124304+nessita@users.noreply.github.com> | 2025-08-25 10:51:10 -0300 |
| commit | 6f8e23d1c10c7ce32cea82b65ad2af640015f147 (patch) | |
| tree | 692a42d2a3c54a6610b17cc14679734973d98d89 /docs/topics/testing/advanced.txt | |
| parent | ef2f16bc4824ca2b10b7f2845baf4d313c9c0da1 (diff) | |
Refs #36485 -- Removed unnecessary parentheses in :meth: and :func: roles in docs.
Diffstat (limited to 'docs/topics/testing/advanced.txt')
| -rw-r--r-- | docs/topics/testing/advanced.txt | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/topics/testing/advanced.txt b/docs/topics/testing/advanced.txt index 72373c6107..b6146253c1 100644 --- a/docs/topics/testing/advanced.txt +++ b/docs/topics/testing/advanced.txt @@ -19,10 +19,10 @@ a black box, with exactly known inputs, testing for specific outputs. The API for the :class:`~django.test.RequestFactory` is a slightly restricted subset of the test client API: -* It only has access to the HTTP methods :meth:`~Client.get()`, - :meth:`~Client.post()`, :meth:`~Client.put()`, - :meth:`~Client.delete()`, :meth:`~Client.head()`, - :meth:`~Client.options()`, and :meth:`~Client.trace()`. +* It only has access to the HTTP methods :meth:`~Client.get`, + :meth:`~Client.post`, :meth:`~Client.put`, + :meth:`~Client.delete`, :meth:`~Client.head`, + :meth:`~Client.options`, and :meth:`~Client.trace`. * These methods accept all the same arguments *except* for ``follow``. Since this is just a factory for producing @@ -158,8 +158,8 @@ and the settings file includes a list of the domains supported by the project:: ALLOWED_HOSTS = ["www.djangoproject.dev", "docs.djangoproject.dev", ...] Another option is to add the required hosts to :setting:`ALLOWED_HOSTS` using -:meth:`~django.test.override_settings()` or -:attr:`~django.test.SimpleTestCase.modify_settings()`. This option may be +:meth:`~django.test.override_settings` or +:attr:`~django.test.SimpleTestCase.modify_settings`. This option may be preferable in standalone apps that can't package their own settings file or for projects where the list of domains is not static (e.g., subdomains for multitenancy). For example, you could write a test for the domain @@ -661,7 +661,7 @@ Methods Override this class method to add custom arguments accepted by the :djadmin:`test` management command. See - :py:meth:`argparse.ArgumentParser.add_argument()` for details about adding + :py:meth:`argparse.ArgumentParser.add_argument` for details about adding arguments to a parser. .. method:: DiscoverRunner.setup_test_environment(**kwargs) |
