From e121c46118f77102272884f92132a2e36e30257c Mon Sep 17 00:00:00 2001 From: Clint Byrum Date: Wed, 1 May 2013 16:25:27 -0700 Subject: [PATCH] Fix test_validate to run by itself Resources were not initialized, so all tests would fail. Calls the same method which is called internally to load all plugins. Change-Id: I696f1d40499bb9a3ca6fde5d08101e9ddabc4369 --- heat/tests/test_validate.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/heat/tests/test_validate.py b/heat/tests/test_validate.py index 808d5ed5..df76829d 100644 --- a/heat/tests/test_validate.py +++ b/heat/tests/test_validate.py @@ -16,6 +16,7 @@ from heat.tests.v1_1 import fakes from heat.common import exception from heat.common import template_format +from heat.engine import resources from heat.engine.resources import instance as instances from heat.engine import service import heat.db.api as db_api @@ -266,6 +267,7 @@ test_template_unimplemented_property = ''' class validateTest(HeatTestCase): def setUp(self): super(validateTest, self).setUp() + resources.initialise() self.fc = fakes.FakeClient() setup_dummy_db() -- 2.45.2