test_stock.py 文件源码

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

项目:sdbot 作者: serverdensity 项目源码 文件源码
def test_apple():
    with vcr.use_cassette('test/fixtures/stock_apple.yaml'):
        ret = on_message({"text": u"$aapl"}, None)
        assert ':chart_with_upwards_trend:' in ret
        assert 'Apple Inc.' in ret
        assert '130.41' in ret
        assert '+1.62' in ret
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号