Merge "tests: allow to skip if no database URL"
This commit is contained in:
commit
38d2a8beb9
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user