We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3df3d89 commit bc3cb78Copy full SHA for bc3cb78
deepaas/tests/base.py
@@ -18,9 +18,13 @@
18
19
import fixtures
20
from oslo_config import cfg
21
+from oslo_config import fixture as config_fixture
22
+from oslo_log import log as logging
23
import testtools
24
25
CONF = cfg.CONF
26
+logging.register_options(CONF)
27
+
28
29
_TRUE_VALUES = ('True', 'true', '1', 'yes')
30
@@ -42,6 +46,8 @@ def setUp(self):
42
46
if test_timeout > 0:
43
47
self.useFixture(fixtures.Timeout(test_timeout, gentle=True))
44
48
49
+ self.useFixture(config_fixture.Config(CONF))
50
45
51
if os.environ.get('TESTR_STDOUT_CAPTURE') in _TRUE_VALUES:
52
stdout = self.useFixture(fixtures.StringStream('stdout')).stream
53
self.useFixture(fixtures.MonkeyPatch('sys.stdout', stdout))
0 commit comments