diff options
author | Stephen Finucane <stephenfin@redhat.com> | 2021-07-16 12:37:24 +0100 |
---|---|---|
committer | Stephen Finucane <stephenfin@redhat.com> | 2021-07-29 16:36:38 +0100 |
commit | 538e0a23abd8dfb7a2fe4a47655e759a50138b13 (patch) | |
tree | a0323e610b203dad61d1eca6420a2e661ac99415 /oslo_db/tests/test_concurrency.py | |
parent | 73e376d2fd5c96a9a3ddd1aea43197f82dd767c2 (diff) | |
download | oslo-db-538e0a23abd8dfb7a2fe4a47655e759a50138b13.tar.gz |
tests: Enfeeble 'oslo_db.tests.utils.BaseTestCase'
We have quite a few base test classes in use. Start fixing these by
removing the logic from one of these. We will remove the class entirely
in a future change.
Change-Id: I6dae26aeb4b2a5cc4f39ed637807a27e44d40025
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Diffstat (limited to 'oslo_db/tests/test_concurrency.py')
-rw-r--r-- | oslo_db/tests/test_concurrency.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/oslo_db/tests/test_concurrency.py b/oslo_db/tests/test_concurrency.py index 91e2f64..6e1cd4b 100644 --- a/oslo_db/tests/test_concurrency.py +++ b/oslo_db/tests/test_concurrency.py @@ -16,6 +16,8 @@ import sys from unittest import mock +from oslo_config import fixture as config_fixture + from oslo_db import concurrency from oslo_db.tests import utils as test_utils @@ -26,6 +28,9 @@ class TpoolDbapiWrapperTestCase(test_utils.BaseTestCase): def setUp(self): super(TpoolDbapiWrapperTestCase, self).setUp() + + self.conf = self.useFixture(config_fixture.Config()).conf + self.db_api = concurrency.TpoolDbapiWrapper( conf=self.conf, backend_mapping=FAKE_BACKEND_MAPPING) |