diff options
| author | Moritz Sichert <moritz.sichert@googlemail.com> | 2015-06-10 22:57:51 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-06-12 17:44:54 -0400 |
| commit | 296919e7a58c21ff0325de8c747dc2dc8960104e (patch) | |
| tree | 085278b68130a6127b7f02200ebb3c742d05317a /docs | |
| parent | e93e0c03b28137e26f9249e0b7c458b0d667a74e (diff) | |
Fixed #24965 -- Made LiveServerTestCase.live_server_url accessible from class
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/testing/tools.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt index e2ad15d5b5..7aaeff97af 100644 --- a/docs/topics/testing/tools.txt +++ b/docs/topics/testing/tools.txt @@ -789,6 +789,12 @@ via the :djadminopt:`--liveserver` option, for example: $ ./manage.py test --liveserver=localhost:8082 +.. versionchanged:: 1.9 + + In older versions ``live_server_url`` could only be accessed from an + instance. It now is a class property and can be accessed from class methods + like ``setUpClass()``. + Another way of changing the default server address is by setting the `DJANGO_LIVE_TEST_SERVER_ADDRESS` environment variable somewhere in your code (for example, in a :ref:`custom test runner<topics-testing-test_runner>`):: |
