示例#1
0
文件: test_run.py 项目: seomoz/shovel
 def logs(self, pth, *args, **kwargs):
     with Path(pth):
         with logs() as out:
             shovel.run(*args, **kwargs)
         return [
             line.strip() for line in out.getvalue().strip().split('\n')
         ]
示例#2
0
文件: test_run.py 项目: seomoz/shovel
 def stderr(self, pth, *args, **kwargs):
     with Path(pth):
         with capture('stderr') as out:
             shovel.run(*args, **kwargs)
         return [
             line.strip() for line in out.getvalue().strip().split('\n')
         ]
示例#3
0
 def logs(self, pth, *args, **kwargs):
     with path(pth):
         with logs() as out:
             shovel.run(*args, **kwargs)
         return [line.strip() for line in
             out.getvalue().strip().split('\n')]
示例#4
0
 def stderr(self, pth, *args, **kwargs):
     with path(pth):
         with capture('stderr') as out:
             shovel.run(*args, **kwargs)
         return [line.strip() for line in
             out.getvalue().strip().split('\n')]