summaryrefslogtreecommitdiff
path: root/heat/tests/test_watch.py
diff options
context:
space:
mode:
authorClint Byrum <clint@fewbar.com>2013-04-23 15:51:57 -0700
committerClint Byrum <clint@fewbar.com>2013-04-24 10:03:06 -0700
commita60f6d45693c8a0d70f78a0fa9216a8c54c062e7 (patch)
treee20ac0fbad20da223132488d1aa0c61ee03b2e40 /heat/tests/test_watch.py
parentf3be3d90b30b6beb5d1ba94a4589a4345469f544 (diff)
downloadheat-a60f6d45693c8a0d70f78a0fa9216a8c54c062e7.tar.gz
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
Diffstat (limited to 'heat/tests/test_watch.py')
-rw-r--r--heat/tests/test_watch.py2
1 files changed, 1 insertions, 1 deletions
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