From 26f181939ebdad3811736aadeb5634bbdcaca025 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Sun, 16 Apr 2023 19:14:09 -0400 Subject: [4.2.x] Used extlinks for PyPI links. Co-authored-by: Mariusz Felisiak Backport of 2c4dc6476083c853b654e462c7ff65dbe0334c9e from main --- docs/topics/testing/advanced.txt | 3 +-- docs/topics/testing/tools.txt | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'docs/topics/testing') diff --git a/docs/topics/testing/advanced.txt b/docs/topics/testing/advanced.txt index 65ca20dad8..26de48497b 100644 --- a/docs/topics/testing/advanced.txt +++ b/docs/topics/testing/advanced.txt @@ -873,7 +873,7 @@ important part of testing applications, so it's strongly recommended to check the coverage of your tests. Django can be easily integrated with `coverage.py`_, a tool for measuring code -coverage of Python programs. First, `install coverage.py`_. Next, run the +coverage of Python programs. First, install :pypi:`coverage`. Next, run the following from your project folder containing ``manage.py``: .. code-block:: shell @@ -894,4 +894,3 @@ For more options like annotated HTML listings detailing missed lines, see the `coverage.py`_ docs. .. _coverage.py: https://coverage.readthedocs.io/ -.. _install coverage.py: https://pypi.org/project/coverage/ diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt index efdb54d939..f1bf71809e 100644 --- a/docs/topics/testing/tools.txt +++ b/docs/topics/testing/tools.txt @@ -1031,8 +1031,7 @@ port assigned by the operating system. The server's URL can be accessed with ``self.live_server_url`` during the tests. To demonstrate how to use ``LiveServerTestCase``, let's write a Selenium test. -First of all, you need to install the `selenium package`_ into your Python -path: +First of all, you need to install the :pypi:`selenium` package: .. console:: @@ -1090,7 +1089,6 @@ example above is just a tiny fraction of what the Selenium client can do; check out the `full reference`_ for more details. .. _Selenium: https://www.selenium.dev/ -.. _selenium package: https://pypi.org/project/selenium/ .. _full reference: https://selenium-python.readthedocs.io/api.html .. _Firefox: https://www.mozilla.com/firefox/ -- cgit v1.3