test_build.py 文件源码

python
阅读 36 收藏 0 点赞 0 评论 0

项目:slam 作者: miguelgrinberg 项目源码 文件源码
def test_generate_lambda_handler(self):
        cli._generate_lambda_handler(
            {'function': {'module': 'my_module', 'app': 'my_app'}},
            output='_slam.yaml')
        with open('_slam.yaml') as f:
            handler = f.read()
        os.remove('_slam.yaml')
        self.assertIn('from my_module import my_app', handler)
        self.assertIn(''.join(inspect.getsourcelines(
            cli._run_lambda_function)[0][1:]), handler)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号