Improve telegram /profit command (#188)

This commit is contained in:
Gérald LONLAS
2017-12-15 08:19:00 -08:00
committed by Michael Egger
parent 9f907d5b5e
commit e00f02b603
2 changed files with 22 additions and 10 deletions

View File

@@ -189,7 +189,7 @@ def test_profit_handle(default_conf, update, ticker, limit_buy_order, limit_sell
_profit(bot=MagicMock(), update=update)
assert msg_mock.call_count == 1
assert '*ROI:* `1.50701325 (10.05%)`' in msg_mock.call_args_list[-1][0][0]
assert '*ROI All trades:* `0.00765279 BTC (10.05%)`' in msg_mock.call_args_list[-1][0][0]
assert 'Best Performing:* `BTC_ETH: 10.05%`' in msg_mock.call_args_list[-1][0][0]