Update telegram to sort performance by absolute performance

This commit is contained in:
Matthias
2021-05-15 19:49:21 +02:00
parent 6b2a38ccfb
commit 2d7735ba04
3 changed files with 11 additions and 8 deletions

View File

@@ -929,7 +929,7 @@ def test_performance_handle(default_conf, update, ticker, fee,
telegram._performance(update=update, context=MagicMock())
assert msg_mock.call_count == 1
assert 'Performance' in msg_mock.call_args_list[0][0][0]
assert '<code>ETH/BTC\t6.20% (1)</code>' in msg_mock.call_args_list[0][0][0]
assert '<code>ETH/BTC\t0.00006217 BTC (6.20%) (1)</code>' in msg_mock.call_args_list[0][0][0]
def test_count_handle(default_conf, update, ticker, fee, mocker) -> None: