mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Removed versionadded/changed annotations for 2.2.
This commit is contained in:
@@ -628,10 +628,6 @@ utility methods in the ``django.test.utils`` module.
|
||||
databases should be setup for. If it's not provided, it defaults to all of
|
||||
:setting:`DATABASES` aliases.
|
||||
|
||||
.. versionadded:: 2.2
|
||||
|
||||
The ``aliases`` argument was added.
|
||||
|
||||
.. function:: teardown_databases(old_config, parallel=0, keepdb=False)
|
||||
|
||||
Destroys the test databases, restoring pre-test conditions.
|
||||
|
||||
@@ -225,11 +225,6 @@ Use the ``django.test.Client`` class to make requests.
|
||||
:class:`Client`. This serialization also happens for :meth:`put`,
|
||||
:meth:`patch`, and :meth:`delete` requests.
|
||||
|
||||
.. versionchanged:: 2.2
|
||||
|
||||
The JSON serialization was extended to support lists and tuples. In
|
||||
older versions, only dicts are serialized.
|
||||
|
||||
If you provide any other ``content_type`` (e.g. :mimetype:`text/xml`
|
||||
for an XML payload), the contents of ``data`` are sent as-is in the
|
||||
POST request, using ``content_type`` in the HTTP ``Content-Type``
|
||||
@@ -745,8 +740,6 @@ If your tests make any database queries, use subclasses
|
||||
|
||||
.. attribute:: SimpleTestCase.databases
|
||||
|
||||
.. versionadded:: 2.2
|
||||
|
||||
:class:`~SimpleTestCase` disallows database queries by default. This
|
||||
helps to avoid executing write queries which will affect other tests
|
||||
since each ``SimpleTestCase`` test isn't run in a transaction. If you
|
||||
@@ -1152,8 +1145,6 @@ Multi-database support
|
||||
|
||||
.. attribute:: TransactionTestCase.databases
|
||||
|
||||
.. versionadded:: 2.2
|
||||
|
||||
Django sets up a test database corresponding to every database that is
|
||||
defined in the :setting:`DATABASES` definition in your settings and referred to
|
||||
by at least one test through ``databases``.
|
||||
@@ -1199,8 +1190,6 @@ The previous behavior of ``multi_db = True`` can be achieved by setting
|
||||
|
||||
.. attribute:: TestCase.databases
|
||||
|
||||
.. versionadded:: 2.2
|
||||
|
||||
By default, only the ``default`` database will be wrapped in a transaction
|
||||
during a ``TestCase``'s execution and attempts to query other databases will
|
||||
result in assertion errors to prevent state leaking between tests.
|
||||
@@ -1563,8 +1552,6 @@ your test suite.
|
||||
|
||||
.. method:: SimpleTestCase.assertURLEqual(url1, url2, msg_prefix='')
|
||||
|
||||
.. versionadded:: 2.2
|
||||
|
||||
Asserts that two URLs are the same, ignoring the order of query string
|
||||
parameters except for parameters with the same name. For example,
|
||||
``/path/?x=1&y=2`` is equal to ``/path/?y=2&x=1``, but
|
||||
|
||||
Reference in New Issue
Block a user