def testImport_t(): importRoot = CRABServerBase.getCRABServerBase() + '/src/python' for (dirpath, dirnames, filenames) in os.walk(importRoot): dirpath = os.path.relpath(dirpath, importRoot) baseModule = dirpath.replace(os.sep, '.') for filename in filenames: if not filename.endswith('.py'): continue moduleName = filename.replace('.py', '') if baseModule != '.': toImport = "%s.%s" % (baseModule, moduleName) else: toImport = moduleName importOne.name = "Import.%s" % toImport importOne.description = importOne.name yield importOne, toImport
def testImport_t(): importRoot = CRABServerBase.getCRABServerBase() + '/src/python' for (dirpath, dirnames, filenames) in os.walk(importRoot): dirpath = os.path.relpath(dirpath, importRoot) baseModule = dirpath.replace(os.sep, '.') for filename in filenames: if not filename.endswith('.py'): continue moduleName = filename.replace('.py', '') if baseModule != '.': toImport = "%s.%s" % (baseModule, moduleName) else: toImport = moduleName importOne.name = "Import.%s" % toImport importOne.description = importOne.name yield importOne, toImport
def getTestRoot(): return os.path.join(CRABServerBase.getCRABServerBase(), 'test', 'python')
def getTestRoot(): return os.path.join(CRABServerBase.getCRABServerBase(), 'test', 'python')