Fix "No handlers could be found" warnings
These warnings are caused because nothing is capturing log output in their test cases. HeatTestCase automatically does this using the FakeLogger fixture. Change-Id: I7884c99cebc0c69f7675cdddd5e53de2e4b52c13
This commit is contained in:
parent
a0df5125f4
commit
33dd5c65ce
|
@ -13,12 +13,11 @@
|
|||
# under the License.
|
||||
|
||||
|
||||
import unittest
|
||||
|
||||
from heat.tests.common import HeatTestCase
|
||||
import heat.engine.api as api
|
||||
|
||||
|
||||
class EngineApiTest(unittest.TestCase):
|
||||
class EngineApiTest(HeatTestCase):
|
||||
def test_timeout_extract(self):
|
||||
p = {'timeout_mins': '5'}
|
||||
args = api.extract_args(p)
|
||||
|
|
|
@ -14,18 +14,19 @@
|
|||
|
||||
from testtools import skipIf
|
||||
import os
|
||||
import unittest
|
||||
|
||||
from heat.engine import clients
|
||||
from heat.common import context
|
||||
from heat.common import template_format
|
||||
from heat.engine import parser
|
||||
from heat.tests.common import HeatTestCase
|
||||
from heat.tests.utils import setup_dummy_db
|
||||
|
||||
|
||||
class JsonToYamlTest(unittest.TestCase):
|
||||
class JsonToYamlTest(HeatTestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(JsonToYamlTest, self).setUp()
|
||||
self.expected_test_count = 10
|
||||
self.longMessage = True
|
||||
self.maxDiff = None
|
||||
|
@ -76,7 +77,7 @@ class JsonToYamlTest(unittest.TestCase):
|
|||
yield (json_str, yml_str, f.name)
|
||||
|
||||
|
||||
class YamlMinimalTest(unittest.TestCase):
|
||||
class YamlMinimalTest(HeatTestCase):
|
||||
|
||||
def test_minimal_yaml(self):
|
||||
yaml1 = ''
|
||||
|
@ -91,9 +92,10 @@ Outputs: {}
|
|||
self.assertEqual(tpl1, tpl2)
|
||||
|
||||
|
||||
class JsonYamlResolvedCompareTest(unittest.TestCase):
|
||||
class JsonYamlResolvedCompareTest(HeatTestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(JsonYamlResolvedCompareTest, self).setUp()
|
||||
self.longMessage = True
|
||||
self.maxDiff = None
|
||||
setup_dummy_db()
|
||||
|
|
Loading…
Reference in New Issue