diff options
| author | Radosław Piliszek <radoslaw.piliszek@gmail.com> | 2020-04-17 17:30:28 +0200 |
|---|---|---|
| committer | Radosław Piliszek <radoslaw.piliszek@gmail.com> | 2020-04-26 12:16:44 +0200 |
| commit | 234272eb646ce877043ec486bbcf6fe2dcb7e3b4 (patch) | |
| tree | dbfe6c885c80c23c5ee248be34969bf334ded0f4 /doc | |
| parent | b1db4f5c3bc14d4e9a501c32fb73a2bf2aa2a37e (diff) | |
| download | kolla-ansible-234272eb646ce877043ec486bbcf6fe2dcb7e3b4.tar.gz kolla-ansible-234272eb646ce877043ec486bbcf6fe2dcb7e3b4.zip | |
Cleanup py27 support
Removes and/or replaces all mentions of py27.
Cleans up obsolete requirements and their lower-constraints.
Separates test-requirements.
Makes lower-constraints pass outside of CI (MarkupSafe).
Adds FIXMEs about some hacky Mocks that may misbehave.
Change-Id: Ifc090bf3c1db17d8542ee591c91e8225a597bfe2
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/source/contributor/running-tests.rst | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/source/contributor/running-tests.rst b/doc/source/contributor/running-tests.rst index bf9481a2f..16c55a3cb 100644 --- a/doc/source/contributor/running-tests.rst +++ b/doc/source/contributor/running-tests.rst @@ -28,11 +28,11 @@ so the only package you install is ``tox`` itself: For more information, see `the unit testing section of the Testing wiki page <https://wiki.openstack.org/wiki/Testing#Unit_Tests>`_. For example: -To run the Python 2.7 tests: +To run the Python 3.7 tests: .. code-block:: console - tox -e py27 + tox -e py37 To run the style tests: @@ -44,7 +44,7 @@ To run multiple tests separate items by commas: .. code-block:: console - tox -e py27,py37,pep8 + tox -e py37,pep8 Running a subset of tests ------------------------- @@ -58,28 +58,28 @@ directory use: .. code-block:: console - tox -e py27 kolla-ansible.tests + tox -e py37 kolla-ansible.tests To run the tests of a specific file ``kolla-ansible/tests/test_kolla_docker.py``: .. code-block:: console - tox -e py27 test_kolla_docker + tox -e py37 test_kolla_docker To run the tests in the ``ModuleArgsTest`` class in the ``kolla-ansible/tests/test_kolla_docker.py`` file: .. code-block:: console - tox -e py27 test_kolla_docker.ModuleArgsTest + tox -e py37 test_kolla_docker.ModuleArgsTest To run the ``ModuleArgsTest.test_module_args`` test method in the ``kolla-ansible/tests/test_kolla_docker.py`` file: .. code-block:: console - tox -e py27 test_kolla_docker.ModuleArgsTest.test_module_args + tox -e py37 test_kolla_docker.ModuleArgsTest.test_module_args Debugging unit tests -------------------- |
