Esempio n. 1
0
def run():
    from simplerpc.common.path import formatPathPrint
    from simplerpc.context.SimpleRpcContext import SimpleRpcContext
    from simplerpc.common.log.Logger import Logger
    import simplerpc.common.log.printSmoke as printSmoke
    import logging
    printSmoke.do_print = False
    Logger.default_level = logging.ERROR
    Logger.handler_level = logging.ERROR
    context = SimpleRpcContext('smoke test')
    s = SmokeTestRunner(context)
    s.runTests()
    for m in s.getModulesWithoutTests():
        f = m.__file__
        if f.endswith('.pyc'):
            f = f[:-1]
        context.log('Missing test in module %s' % m)
        context.log(formatPathPrint(f))
Esempio n. 2
0
 def formatFilePath(self, file_path, line=1):
     return formatPathPrint(file_path, line)