summaryrefslogtreecommitdiffstats
path: root/tests/test_import_legacy.py
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2012-09-27 10:50:19 -0700
committerMonty Taylor <mordred@inaugust.com>2012-09-27 22:34:51 -0700
commit49487a6ac63ae32b61687d9e8aeb0956590445d7 (patch)
treef4e0e154eb6d444536c2895257f2f1606ff02551 /tests/test_import_legacy.py
parent431e50a7851d2e7dbb212d02647faeb958ed21e8 (diff)
downloadkeystone-49487a6ac63ae32b61687d9e8aeb0956590445d7.tar.gz
keystone-49487a6ac63ae32b61687d9e8aeb0956590445d7.tar.xz
keystone-49487a6ac63ae32b61687d9e8aeb0956590445d7.zip
Remove run_test.py in favor of stock nose.
Move specific functionality into test fixtures, so that normal test runners can work. For now, this means we can use unaltered nose. For the future, it gets us closer to being able to use other test runners such as testrepository which allow for things like parallel test runs and re-running failed tests in a dev/test cycle. Also, aligns keystone with nova and glance. Change-Id: Ic1966281c0bdfbc09792360209692e9d4a0a51a7
Diffstat (limited to 'tests/test_import_legacy.py')
-rw-r--r--tests/test_import_legacy.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_import_legacy.py b/tests/test_import_legacy.py
index 84c4bb6b..c5cd481f 100644
--- a/tests/test_import_legacy.py
+++ b/tests/test_import_legacy.py
@@ -39,6 +39,10 @@ class ImportLegacy(test.TestCase):
sql_util.setup_test_database()
self.identity_api = identity_sql.Identity()
+ def tearDown(self):
+ sql_util.teardown_test_database()
+ super(ImportLegacy, self).tearDown()
+
def setup_old_database(self, sql_dump):
sql_path = test.testsdir(sql_dump)
db_path = test.testsdir('%s.db' % sql_dump)