From 49487a6ac63ae32b61687d9e8aeb0956590445d7 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Thu, 27 Sep 2012 10:50:19 -0700 Subject: 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 --- tests/test_import_legacy.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/test_import_legacy.py') 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) -- cgit