From 4e83ad8299182d1e8a1b0600c0722d4754180487 Mon Sep 17 00:00:00 2001 From: Ann Kamyshnikova Date: Tue, 18 Aug 2015 17:44:49 +0300 Subject: [PATCH] Fix exception message about unavailable backend At this moment if MySQL or PosrgreSQL are not installed the tests will be skipped or failed with message 'database '%s' unavailable'. Change 'database' -> 'backend'. Change-Id: Id57f86a007f99c76f2ef2188279cad016433599f --- oslo_db/sqlalchemy/test_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oslo_db/sqlalchemy/test_base.py b/oslo_db/sqlalchemy/test_base.py index 173db57..40b9c30 100644 --- a/oslo_db/sqlalchemy/test_base.py +++ b/oslo_db/sqlalchemy/test_base.py @@ -66,7 +66,7 @@ class DbFixture(fixtures.Fixture): self.test, self.test.resources, testresources._get_result() ) if not hasattr(self.test, 'db'): - msg = "database '%s' unavailable" % self.DRIVER + msg = "backend '%s' unavailable" % self.DRIVER if self.skip_on_unavailable_db: self.test.skip(msg) else: