Change testrunner to py.test

py.test is used in many of our projects and much more advanced
than testrepository
also it allowed to catch a small bug - driver do not work
on a copy of a data so it modifies it also for other components

Change-Id: I1273383d7e5aba110b5c74cd66095afd6e226a42
Implements: blueprint volume-manager-refactoring
This commit is contained in:
Sebastian Kalinowski 2015-06-25 20:42:21 +02:00 committed by Sebastian Kalinowski
parent bdb6594b7a
commit 3d49f22494
3 changed files with 7 additions and 4 deletions

View File

@ -13,6 +13,8 @@
# limitations under the License.
import abc
import copy
import six
@ -25,4 +27,4 @@ class BaseDataDriver(object):
"""
def __init__(self, data):
self.data = data
self.data = copy.deepcopy(data)

View File

@ -2,4 +2,5 @@ hacking>=0.8.0,<0.9
mock>=1.0
oslotest==1.0
testtools>=0.9.34
testrepository>=0.0.18
pytest>=2.7.2
pytest-cov>=1.8.1

View File

@ -10,7 +10,7 @@ setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
python setup.py testr --slowest --testr-args='{posargs:}'
py.test -vv {posargs:fuel_agent/tests}
[tox:jenkins]
downloadcache = ~/cache/pip
@ -23,7 +23,7 @@ commands =
[testenv:cover]
setenv = VIRTUAL_ENV={envdir}
commands =
python setup.py testr --coverage {posargs:fuel_agent}
py.test --cov fuel_agent {posargs:fuel_agent/tests}
[testenv:venv]
commands = {posargs:}