diff options
| author | sirish.bitra <sirish.bitra@gmail.com> | 2011-05-12 19:23:24 +0530 |
|---|---|---|
| committer | sirish.bitra <sirish.bitra@gmail.com> | 2011-05-12 19:23:24 +0530 |
| commit | 3c018e49ea1ed883b114fddc8a9d6fcd15456761 (patch) | |
| tree | e607e0c69b0b7424a2e39934c2ccbda56a668fa4 | |
| parent | bbed8921549de9951099ea7c5053692a7951ae97 (diff) | |
| download | keystone-3c018e49ea1ed883b114fddc8a9d6fcd15456761.tar.gz keystone-3c018e49ea1ed883b114fddc8a9d6fcd15456761.tar.xz keystone-3c018e49ea1ed883b114fddc8a9d6fcd15456761.zip | |
fixed bug raised when included exthandler
| -rw-r--r-- | test/unit/test_keystone.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/test/unit/test_keystone.py b/test/unit/test_keystone.py index 0301bf82..9a6fe4df 100644 --- a/test/unit/test_keystone.py +++ b/test/unit/test_keystone.py @@ -3,7 +3,9 @@ import os import unittest from lxml import etree MODULE_EXTENSIONS = set('.py'.split()) - +TEST_FILES = ['test_authentication.py', 'test_keystone.py', 'test_tenants.py', + 'test_common.py', 'test_users.py','test_tenant_groups.py', + 'test_token.py', 'test_version.py', 'test_groups.py'] def unit_test_extractor(tup, path, filenames): """Pull ``unittest.TestSuite``s from modules in path @@ -24,9 +26,11 @@ def unit_test_extractor(tup, path, filenames): logging.info('Base: %s', '.'.join(relpath_pieces)) for filename in filenames: - base, ext = os.path.splitext(filename) - if ext not in MODULE_EXTENSIONS: # Not a Python module. + if filename not in TEST_FILES: continue + base, ext = os.path.splitext(filename) + #if ext not in MODULE_EXTENSIONS : # Not a Python module. + # continue logging.info('Module: %s', base) module_name = '.'.join(relpath_pieces + [base]) logging.info('Importing from %s', module_name) |
