Migrate unit tests from testr to stestr
Note that there are no actual unit tests. This just ensures that the deprecated testr module is replaced with stestr Change-Id: Ib05d8883806c7b3dcdd6f985f17fadd780245dd1
This commit is contained in:
parent
75286e5117
commit
a3b00e5b5f
3
.stestr.conf
Normal file
3
.stestr.conf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[DEFAULT]
|
||||||
|
test_path=./unit_tests
|
||||||
|
top_dir=./
|
@ -1,2 +1,2 @@
|
|||||||
flake8>=2.2.4,<=2.4.1
|
flake8>=2.2.4
|
||||||
os-testr>=0.4.1
|
stestr>=2.2.0
|
||||||
|
8
tox.ini
8
tox.ini
@ -11,7 +11,7 @@ setenv = VIRTUAL_ENV={envdir}
|
|||||||
PYTHONHASHSEED=0
|
PYTHONHASHSEED=0
|
||||||
install_command =
|
install_command =
|
||||||
pip install {opts} {packages}
|
pip install {opts} {packages}
|
||||||
commands = ostestr {posargs}
|
commands = stestr run {posargs}
|
||||||
|
|
||||||
[testenv:py34]
|
[testenv:py34]
|
||||||
basepython = python3.4
|
basepython = python3.4
|
||||||
@ -25,6 +25,12 @@ deps = -r{toxinidir}/test-requirements.txt
|
|||||||
# TODO: Need to write unit tests then remove the following command.
|
# TODO: Need to write unit tests then remove the following command.
|
||||||
commands = /bin/true
|
commands = /bin/true
|
||||||
|
|
||||||
|
[testenv:py3]
|
||||||
|
basepython = python3
|
||||||
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
|
# TODO: Need to write unit tests then remove the following command.
|
||||||
|
|
||||||
|
commands = /bin/true
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
deps = -r{toxinidir}/test-requirements.txt
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user