From 4955a9bf4807e37ad868ef0f20bd82e2645c25ca Mon Sep 17 00:00:00 2001 From: Chris Alfonso Date: Tue, 22 May 2012 17:05:55 -0400 Subject: [PATCH] Fixing path lookup to make sure the templates can be found Change-Id: Ib48c27a9d0a794d243e48661aaebb108728af6bb Conflicts: heat/tests/test_resources.py heat/tests/test_stacks.py --- heat/tests/test_resources.py | 2 ++ heat/tests/test_stacks.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/heat/tests/test_resources.py b/heat/tests/test_resources.py index 4e285774..8338890d 100644 --- a/heat/tests/test_resources.py +++ b/heat/tests/test_resources.py @@ -22,6 +22,8 @@ class instancesTest(unittest.TestCase): def setUp(self): self.m = mox.Mox() self.fc = fakes.FakeClient() + self.path = os.path.dirname(os.path.realpath(__file__)).\ + replace('heat/tests', 'templates') def tearDown(self): self.m.UnsetStubs() diff --git a/heat/tests/test_stacks.py b/heat/tests/test_stacks.py index e78a0c0e..6007a54b 100644 --- a/heat/tests/test_stacks.py +++ b/heat/tests/test_stacks.py @@ -22,6 +22,8 @@ class stacksTest(unittest.TestCase): def setUp(self): self.m = mox.Mox() self.fc = fakes.FakeClient() + self.path = os.path.dirname(os.path.realpath(__file__)).\ + replace('heat/tests', 'templates') def tearDown(self): self.m.UnsetStubs() -- 2.45.2