test_katbot.py 文件源码

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

项目:katcr 作者: XayOn 项目源码 文件源码
def test_katbot_isinstance():
    """Test katbot is a bot instance."""
    from telepot import Bot
    from katcr.bot import KATBot
    assert issubclass(KATBot, Bot)
    opts = {'--token': "foo", '--shortener': ''}
    assert isinstance(KATBot(opts), Bot)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号