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
This commit is contained in:
Ann Kamyshnikova 2015-08-18 17:44:49 +03:00
parent 2a75b62b80
commit 4e83ad8299

View File

@ -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: