From a60f6d45693c8a0d70f78a0fa9216a8c54c062e7 Mon Sep 17 00:00:00 2001 From: Clint Byrum Date: Tue, 23 Apr 2013 15:51:57 -0700 Subject: Do not initialize anything during import phase The structure of the program is compromised by doing too much logic in the import phase. We can read the code more cleanly if we can see where the intended initialization code is called. This may make tests slightly more tedious to write, but that should be handled by writing generic fixtures which can be reused for exactly this purpose. Change-Id: I1d221e2f90d1f6e89717a37d2128caabd077d30a --- heat/tests/test_watch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'heat/tests/test_watch.py') diff --git a/heat/tests/test_watch.py b/heat/tests/test_watch.py index b2d0b4c9e..7a0162d4a 100644 --- a/heat/tests/test_watch.py +++ b/heat/tests/test_watch.py @@ -18,7 +18,7 @@ import mox from nose.plugins.attrib import attr import unittest from heat.common import context -import heat.db as db_api +import heat.db.api as db_api from heat.openstack.common import timeutils from heat.engine import watchrule -- cgit v1.2.1