Fixed up test-requirements

As a first step to OpenStack alignment, get test-requirements.txt in
line with current OpenStack standard practices.

Fixes: Bug #1205546
Change-Id: I899c3dc167df191b84008250671c58520c436a30
This commit is contained in:
Monty Taylor 2013-07-26 22:27:45 -04:00
parent b4a9fceea7
commit 36a46649ed
3 changed files with 9 additions and 18 deletions

8
test-requirements.txt Normal file
View File

@ -0,0 +1,8 @@
hacking>=0.5.3,<0.6
coverage>=3.6
discover
testrepository>=0.0.13
testtools>=0.9.27
Babel>=0.9.6,<1.0
argparse

View File

@ -1,2 +0,0 @@
testtools
fixtures

17
tox.ini
View File

@ -5,26 +5,12 @@ envlist = py26,py27,pep8
setenv = LANG=en_US.UTF-8 setenv = LANG=en_US.UTF-8
LANGUAGE=en_US:en LANGUAGE=en_US:en
LC_ALL=C LC_ALL=C
deps= deps= -r{toxinidir}/test-requirements.txt
testtools
testrepository
coverage
babel
commands= commands=
bash -c 'if [ ! -d ./.testrepository ] ; then testr init ; fi' bash -c 'if [ ! -d ./.testrepository ] ; then testr init ; fi'
bash -c 'testr run --parallel {posargs} ; RET=$?; echo "Slowest Tests" ; testr slowest && exit $RET' bash -c 'testr run --parallel {posargs} ; RET=$?; echo "Slowest Tests" ; testr slowest && exit $RET'
[testenv:py26]
deps=
testtools
testrepository
coverage
babel
discover
argparse
[testenv:pep8] [testenv:pep8]
deps = hacking>=0.5.3,<0.6
commands = commands =
flake8 {posargs} flake8 {posargs}
@ -43,4 +29,3 @@ downloadcache = ~/cache/pip
ignore = E125,H ignore = E125,H
builtins = _ builtins = _
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build