summaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2013-01-14 08:38:17 +0000
committerMark McLoughlin <markmc@redhat.com>2013-01-15 16:45:25 +0000
commit580c259b39fa5e639d3fbe00dc24da09c11d282a (patch)
tree3575cb70dbb1a433ad375de27b188552e352fbbd /tox.ini
parent2f93ad27a25e10df47a4181938e3a183fc899954 (diff)
downloadoslo-580c259b39fa5e639d3fbe00dc24da09c11d282a.tar.gz
oslo-580c259b39fa5e639d3fbe00dc24da09c11d282a.tar.xz
oslo-580c259b39fa5e639d3fbe00dc24da09c11d282a.zip
Make tox run doctests
Use 'nosetests --with-doctests' to run any doctests found. We currently only use doctests in a handful of places, but we may as well run them to ensure they work. Make the cfg doctests avoid using the global CONF since we would need to reset its state between each doctest. Fix the cliutils doctests to actually pass. Use 'nosetests --exclude-dir=tests/testmods' to avoid loading the modules from this dir while discovering doctests. The cfg unit tests rely on these modules not having been previously loaded. Change-Id: I19ad70767fa5c8352b994dc963b5d3a7c9d9eb95
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini2
1 files changed, 1 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 6efcecc..483c545 100644
--- a/tox.ini
+++ b/tox.ini
@@ -11,7 +11,7 @@ setenv = VIRTUAL_ENV={envdir}
NOSE_OPENSTACK_STDOUT=1
deps = -r{toxinidir}/tools/pip-requires
-r{toxinidir}/tools/test-requires
-commands = nosetests {posargs}
+commands = nosetests --with-doctest --exclude-dir=tests/testmods {posargs}
[testenv:pep8]
deps = pep8==1.3.3