Merge "tests: allow to skip if no database URL"

This commit is contained in:
Jenkins 2014-01-15 11:48:06 +00:00 committed by Gerrit Code Review
commit 38d2a8beb9

View File

@ -33,6 +33,10 @@ from ceilometer.tests import base as test_base
class TestBase(test_base.BaseTestCase):
def setUp(self):
super(TestBase, self).setUp()
if self.database_connection is None:
self.skipTest("No connection URL set")
self.CONF = self.useFixture(config.Config()).conf
self.CONF.set_override('connection', str(self.database_connection),
group='database')