From 383121fc584d2d3bf9d233eba0d3708398a4c468 Mon Sep 17 00:00:00 2001 From: Alex Kavanagh Date: Wed, 10 Feb 2021 12:36:21 +0000 Subject: [PATCH] Migrate from testr to stestr module Note that the interface doesn't have any unit tests yet. Change-Id: Ifc2f9c0b4a63a2728b8ae6601326f8ccd4887184 --- .stestr.conf | 3 +++ test-requirements.txt | 3 ++- tox.ini | 8 +++++++- 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 .stestr.conf diff --git a/.stestr.conf b/.stestr.conf new file mode 100644 index 0000000..5fcccac --- /dev/null +++ b/.stestr.conf @@ -0,0 +1,3 @@ +[DEFAULT] +test_path=./unit_tests +top_dir=./ diff --git a/test-requirements.txt b/test-requirements.txt index b990d70..9ea2415 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1 +1,2 @@ -flake8>=2.2.4,<=2.4.1 +flake8>=2.2.4 +stestr>=2.2.0 diff --git a/tox.ini b/tox.ini index 678e587..27ffee6 100644 --- a/tox.ini +++ b/tox.ini @@ -11,7 +11,7 @@ setenv = VIRTUAL_ENV={envdir} PYTHONHASHSEED=0 install_command = pip install {opts} {packages} -commands = ostestr {posargs} +commands = stestr run {posargs} [testenv:py35] basepython = python3.5 @@ -19,6 +19,12 @@ deps = -r{toxinidir}/test-requirements.txt # TODO: Need to write unit tests then remove the following command. 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] basepython = python3 deps = -r{toxinidir}/test-requirements.txt