From 3c018e49ea1ed883b114fddc8a9d6fcd15456761 Mon Sep 17 00:00:00 2001 From: "sirish.bitra" Date: Thu, 12 May 2011 19:23:24 +0530 Subject: fixed bug raised when included exthandler --- test/unit/test_keystone.py | 10 +++++++--- 1 file 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) -- cgit