diff options
| author | Ramiro Morales <ramiro@users.noreply.github.com> | 2018-01-20 14:38:48 -0300 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-01-20 12:38:48 -0500 |
| commit | 37c17846ad6b02c6dca72e8087a279cca04a0c27 (patch) | |
| tree | 03c6dc058936e14daee338dca6413915dcad8f93 /docs/topics/testing/tools.txt | |
| parent | a22ef3bb379a8783d0a2c3d7e1de531dce220a75 (diff) | |
Fixed #28343 -- Add an OS chooser for docs command line examples.
Diffstat (limited to 'docs/topics/testing/tools.txt')
| -rw-r--r-- | docs/topics/testing/tools.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt index 65d1fb463b..c7ae792fb5 100644 --- a/docs/topics/testing/tools.txt +++ b/docs/topics/testing/tools.txt @@ -857,7 +857,7 @@ 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: -.. code-block:: console +.. console:: $ pip install selenium @@ -900,7 +900,7 @@ The code for this test may look as follows:: Finally, you may run the test as follows: -.. code-block:: console +.. console:: $ ./manage.py test myapp.tests.MySeleniumTests.test_login @@ -1640,19 +1640,19 @@ class. Given:: Then you can choose which tests to run. For example, to run only fast tests: -.. code-block:: console +.. console:: $ ./manage.py test --tag=fast Or to run fast tests and the core one (even though it's slow): -.. code-block:: console +.. console:: $ ./manage.py test --tag=fast --tag=core You can also exclude tests by tag. To run core tests if they are not slow: -.. code-block:: console +.. console:: $ ./manage.py test --tag=core --exclude-tag=slow |
