diff options
Diffstat (limited to 'docs/internals/contributing/writing-code/unit-tests.txt')
| -rw-r--r-- | docs/internals/contributing/writing-code/unit-tests.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/internals/contributing/writing-code/unit-tests.txt b/docs/internals/contributing/writing-code/unit-tests.txt index 51d1e61313..e0369b5800 100644 --- a/docs/internals/contributing/writing-code/unit-tests.txt +++ b/docs/internals/contributing/writing-code/unit-tests.txt @@ -30,8 +30,8 @@ Next, clone your fork, install some requirements, and run the tests:: $ git clone git@github.com:YourGitHubName/django.git django-repo $ cd django-repo/tests - $ pip install -e .. - $ pip install -r requirements/py3.txt + $ python -m pip install -e .. + $ python -m pip install -r requirements/py3.txt $ ./runtests.py Installing the requirements will likely require some operating system packages @@ -68,7 +68,7 @@ and other checks (such as :ref:`import sorting <coding-style-imports>`, the :ref:`code formatting <coding-style-python>`), install and run the ``tox`` command from any place in the Django source tree:: - $ pip install tox + $ python -m pip install tox $ tox By default, ``tox`` runs the test suite with the bundled test settings file for @@ -240,7 +240,7 @@ You can find these dependencies in `pip requirements files`_ inside the ``tests/requirements`` directory of the Django source tree and install them like so:: - $ pip install -r tests/requirements/py3.txt + $ python -m pip install -r tests/requirements/py3.txt If you encounter an error during the installation, your system might be missing a dependency for one or more of the Python packages. Consult the failing |
