step_walker_test.py 文件源码

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

项目:PokemonGo-Bot 作者: PokemonGoF 项目源码 文件源码
def setUp(self):
        self.patcherSleep = patch('pokemongo_bot.walkers.step_walker.sleep')
        self.patcherSleep.start()

        self.bot = MagicMock()
        self.bot.position = [0, 0, 0]
        self.bot.api = MagicMock()

        # let us get back the position set by the StepWalker
        def api_set_position(lat, lng, alt):
            self.bot.position = [lat, lng, alt]
        self.bot.api.set_position = api_set_position
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号