mirror of
https://github.com/django/django.git
synced 2025-12-04 00:55:36 +00:00
Removed versionadded/changed annotations for 1.11.
This commit is contained in:
parent
2bd207ada0
commit
5446b72003
53 changed files with 0 additions and 489 deletions
|
|
@ -117,11 +117,6 @@ Disabling :setting:`ALLOWED_HOSTS` checking (``ALLOWED_HOSTS = ['*']``) when
|
|||
running tests prevents the test client from raising a helpful error message if
|
||||
you follow a redirect to an external URL.
|
||||
|
||||
.. versionchanged:: 1.11
|
||||
|
||||
Older versions didn't validate ``ALLOWED_HOSTS`` while testing so these
|
||||
techniques weren't necessary.
|
||||
|
||||
.. _topics-testing-advanced-multidb:
|
||||
|
||||
Tests and multiple databases
|
||||
|
|
@ -410,10 +405,6 @@ testing behavior. This behavior involves:
|
|||
|
||||
#. Performing global post-test teardown.
|
||||
|
||||
.. versionchanged:: 1.11
|
||||
|
||||
Running the system checks was added.
|
||||
|
||||
If you define your own test runner class and point :setting:`TEST_RUNNER` at
|
||||
that class, Django will execute your test runner whenever you run
|
||||
``./manage.py test``. In this way, it is possible to use any test framework
|
||||
|
|
@ -482,10 +473,6 @@ execute and tear down the test suite.
|
|||
custom arguments by calling ``parser.add_argument()`` inside the method, so
|
||||
that the :djadmin:`test` command will be able to use those arguments.
|
||||
|
||||
.. versionadded:: 1.11
|
||||
|
||||
The ``debug_mode`` keyword argument was added.
|
||||
|
||||
Attributes
|
||||
~~~~~~~~~~
|
||||
|
||||
|
|
@ -574,8 +561,6 @@ Methods
|
|||
|
||||
.. method:: DiscoverRunner.run_checks()
|
||||
|
||||
.. versionadded:: 1.11
|
||||
|
||||
Runs the :doc:`system checks </topics/checks>`.
|
||||
|
||||
.. method:: DiscoverRunner.run_suite(suite, **kwargs)
|
||||
|
|
@ -586,8 +571,6 @@ Methods
|
|||
|
||||
.. method:: DiscoverRunner.get_test_runner_kwargs()
|
||||
|
||||
.. versionadded:: 1.11
|
||||
|
||||
Returns the keyword arguments to instantiate the
|
||||
``DiscoverRunner.test_runner`` with.
|
||||
|
||||
|
|
@ -626,10 +609,6 @@ utility methods in the ``django.test.utils`` module.
|
|||
If ``debug`` isn't ``None``, the :setting:`DEBUG` setting is updated to its
|
||||
value.
|
||||
|
||||
.. versionchanged:: 1.11
|
||||
|
||||
The ``debug`` argument was added.
|
||||
|
||||
.. function:: teardown_test_environment()
|
||||
|
||||
Performs global post-test teardown, such as removing instrumentation from
|
||||
|
|
@ -637,8 +616,6 @@ utility methods in the ``django.test.utils`` module.
|
|||
|
||||
.. function:: setup_databases(verbosity, interactive, keepdb=False, debug_sql=False, parallel=0, **kwargs)
|
||||
|
||||
.. versionadded:: 1.11
|
||||
|
||||
Creates the test databases.
|
||||
|
||||
Returns a data structure that provides enough detail to undo the changes
|
||||
|
|
@ -647,8 +624,6 @@ utility methods in the ``django.test.utils`` module.
|
|||
|
||||
.. function:: teardown_databases(old_config, parallel=0, keepdb=False)
|
||||
|
||||
.. versionadded:: 1.11
|
||||
|
||||
Destroys the test databases, restoring pre-test conditions.
|
||||
|
||||
``old_config`` is a data structure defining the changes in the database
|
||||
|
|
|
|||
|
|
@ -853,13 +853,6 @@ The live server listens on ``localhost`` and binds to port 0 which uses a free
|
|||
port assigned by the operating system. The server's URL can be accessed with
|
||||
``self.live_server_url`` during the tests.
|
||||
|
||||
.. versionchanged:: 1.11
|
||||
|
||||
In older versions, Django tried a predefined port range which could be
|
||||
customized in various ways including the ``DJANGO_LIVE_TEST_SERVER_ADDRESS``
|
||||
environment variable. This is removed in favor of the simpler "bind to port
|
||||
0" technique.
|
||||
|
||||
To demonstrate how to use ``LiveServerTestCase``, let's write a simple Selenium
|
||||
test. First of all, you need to install the `selenium package`_ into your
|
||||
Python path:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue