Update py37 to py38 for running-tests.rst

It should been done in https://review.opendev.org/#/c/752436/ but missing

Change-Id: Iae22e8d8133afecd7e897f82ca58afd6ea33e1c0
This commit is contained in:
zhoulinhui 2020-09-18 00:57:13 +08:00
parent 91f5861769
commit 6c1399d078

View File

@ -34,11 +34,11 @@ To run the default set of tests:
tox tox
To run the Python 3.7 tests: To run the Python 3.8 tests:
.. code-block:: console .. code-block:: console
tox -e py37 tox -e py38
To run the style tests: To run the style tests:
@ -50,7 +50,7 @@ To run multiple tests separate items by commas:
.. code-block:: console .. code-block:: console
tox -e py37,linters tox -e py38,linters
Running a subset of tests Running a subset of tests
------------------------- -------------------------
@ -64,28 +64,28 @@ directory use:
.. code-block:: console .. code-block:: console
tox -e py37 kolla-ansible.tests tox -e py38 kolla-ansible.tests
To run the tests of a specific file To run the tests of a specific file
``kolla-ansible/tests/test_kolla_docker.py``: ``kolla-ansible/tests/test_kolla_docker.py``:
.. code-block:: console .. code-block:: console
tox -e py37 test_kolla_docker tox -e py38 test_kolla_docker
To run the tests in the ``ModuleArgsTest`` class in To run the tests in the ``ModuleArgsTest`` class in
the ``kolla-ansible/tests/test_kolla_docker.py`` file: the ``kolla-ansible/tests/test_kolla_docker.py`` file:
.. code-block:: console .. code-block:: console
tox -e py37 test_kolla_docker.ModuleArgsTest tox -e py38 test_kolla_docker.ModuleArgsTest
To run the ``ModuleArgsTest.test_module_args`` test method in To run the ``ModuleArgsTest.test_module_args`` test method in
the ``kolla-ansible/tests/test_kolla_docker.py`` file: the ``kolla-ansible/tests/test_kolla_docker.py`` file:
.. code-block:: console .. code-block:: console
tox -e py37 test_kolla_docker.ModuleArgsTest.test_module_args tox -e py38 test_kolla_docker.ModuleArgsTest.test_module_args
Debugging unit tests Debugging unit tests
-------------------- --------------------