Merge "tests: Remove duplicate fixture config"

This commit is contained in:
Zuul 2023-11-27 09:01:48 +00:00 committed by Gerrit Code Review
commit 38495d63cf

View File

@ -16,11 +16,9 @@
"""Base classes for API tests. """Base classes for API tests.
""" """
from oslo_config import fixture as fixture_config
import webtest import webtest
from aodh.api import app from aodh.api import app
from aodh import service
from aodh.tests.functional import db as db_test_base from aodh.tests.functional import db as db_test_base
@ -35,8 +33,6 @@ class FunctionalTest(db_test_base.TestBase):
def setUp(self): def setUp(self):
super(FunctionalTest, self).setUp() super(FunctionalTest, self).setUp()
conf = service.prepare_service(argv=[], config_files=[])
self.CONF = self.useFixture(fixture_config.Config(conf)).conf
self.setup_messaging(self.CONF) self.setup_messaging(self.CONF)
self.CONF.set_override('auth_mode', None, group='api') self.CONF.set_override('auth_mode', None, group='api')