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
评论列表
文章目录