summaryrefslogtreecommitdiff
path: root/docs/topics/testing
diff options
context:
space:
mode:
authorareski <areski@gmail.com>2014-08-18 16:30:44 +0200
committerTim Graham <timograham@gmail.com>2014-08-19 16:44:25 -0400
commit9d6551204eff9d1ab70b67578f99630716df7490 (patch)
treef8a8722912985f6b0876d58909880df172a77703 /docs/topics/testing
parentfa02120d360387bebbbe735e86686bb4c7c43db2 (diff)
Removed unnecessary code-block directives.
Diffstat (limited to 'docs/topics/testing')
-rw-r--r--docs/topics/testing/tools.txt12
1 files changed, 3 insertions, 9 deletions
diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt
index 2d412d15b1..7519fb9e63 100644
--- a/docs/topics/testing/tools.txt
+++ b/docs/topics/testing/tools.txt
@@ -695,9 +695,7 @@ via the :djadminopt:`--liveserver` option, for example:
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>`):
-
-.. code-block:: python
+code (for example, in a :ref:`custom test runner<topics-testing-test_runner>`)::
import os
os.environ['DJANGO_LIVE_TEST_SERVER_ADDRESS'] = 'localhost:8082'
@@ -727,9 +725,7 @@ Python path:
pip install selenium
Then, add a ``LiveServerTestCase``-based test to your app's tests module
-(for example: ``myapp/tests.py``). The code for this test may look as follows:
-
-.. code-block:: python
+(for example: ``myapp/tests.py``). The code for this test may look as follows::
from django.test import LiveServerTestCase
from selenium.webdriver.firefox.webdriver import WebDriver
@@ -805,9 +801,7 @@ out the `full reference`_ for more details.
need to check that a response is received by Selenium and that the next
page is loaded before proceeding with further test execution.
Do this, for example, by making Selenium wait until the ``<body>`` HTML tag
- is found in the response (requires Selenium > 2.13):
-
- .. code-block:: python
+ is found in the response (requires Selenium > 2.13)::
def test_login(self):
from selenium.webdriver.support.wait import WebDriverWait