summaryrefslogtreecommitdiffstats
path: root/nova/test.py
diff options
context:
space:
mode:
authorJesse Andrews <jesse@ubuntu>2010-08-14 18:04:43 -0700
committerJesse Andrews <jesse@ubuntu>2010-08-14 18:04:43 -0700
commit1395690e99c41aa14e776e4b94054fde29856c60 (patch)
treeb8e23d0e333765fed93bd9a870a4ce07d390cdac /nova/test.py
parenta860a07068d4d643c42973625c454c6b09e883cb (diff)
downloadnova-1395690e99c41aa14e776e4b94054fde29856c60.tar.gz
nova-1395690e99c41aa14e776e4b94054fde29856c60.tar.xz
nova-1395690e99c41aa14e776e4b94054fde29856c60.zip
got run_tests.py to run (with many failed tests)
Diffstat (limited to 'nova/test.py')
-rw-r--r--nova/test.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/nova/test.py b/nova/test.py
index c7e08734f..9cb826253 100644
--- a/nova/test.py
+++ b/nova/test.py
@@ -39,6 +39,12 @@ FLAGS = flags.FLAGS
flags.DEFINE_bool('fake_tests', True,
'should we use everything for testing')
+from sqlalchemy import create_engine
+from sqlalchemy.ext.declarative import declarative_base
+
+engine = create_engine('sqlite:///:memory:', echo=True)
+Base = declarative_base()
+Base.metadata.create_all(engine)
def skip_if_fake(func):
"""Decorator that skips a test if running in fake mode"""