fixes so the tests will run for a brand new repo

Change-Id: I57feb00cbe6645075cca26334d46ba607e2344b0
This commit is contained in:
Doug Hellmann 2014-02-03 06:38:16 -08:00
parent 98e28ba442
commit 5ec07668bb
4 changed files with 8 additions and 3 deletions

View File

@ -22,6 +22,7 @@ import testtools
_TRUE_VALUES = ('true', '1', 'yes')
# FIXME(dhellmann) Update this to use oslo.test library
class TestCase(testtools.TestCase):

View File

@ -19,7 +19,7 @@ test_{{ cookiecutter.module_name }}
Tests for `{{ cookiecutter.module_name }}` module.
"""
from {{ cookiecutter.module_name }}.tests import base
from . import base
class Test{{ cookiecutter.module_name|capitalize }}(base.TestCase):

View File

@ -1,10 +1,14 @@
[tox]
minversion = 1.6
envlist = py26,py27,py33,pypy,pep8
skipsdist = True
# NOTE(dhellmann): We cannot set skipdist=True
# for oslo libraries because of the namespace package.
#skipsdist = True
[testenv]
usedevelop = True
# NOTE(dhellmann): We cannot set usedevelop=True
# for oslo libraries because of the namespace package.
#usedevelop = True
install_command = pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}