From 240923341b580f0e719c614ddb3ffc2faf93154e Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 29 Oct 2021 07:04:20 +0200 Subject: [PATCH] Reformat telegram test --- tests/conftest.py | 10 +++------- tests/rpc/test_rpc_telegram.py | 3 ++- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 501cfc9b9..698c464ed 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -23,16 +23,12 @@ from freqtrade.freqtradebot import FreqtradeBot from freqtrade.persistence import LocalTrade, Trade, init_db from freqtrade.resolvers import ExchangeResolver from freqtrade.worker import Worker -from tests.conftest_trades import ( - mock_trade_1, - mock_trade_2, - mock_trade_3, - mock_trade_4, - mock_trade_5, - mock_trade_6) +from tests.conftest_trades import (mock_trade_1, mock_trade_2, mock_trade_3, mock_trade_4, + mock_trade_5, mock_trade_6) from tests.conftest_trades_usdt import (mock_trade_usdt_1, mock_trade_usdt_2, mock_trade_usdt_3, mock_trade_usdt_4, mock_trade_usdt_5, mock_trade_usdt_6) + logging.getLogger('').setLevel(logging.INFO) diff --git a/tests/rpc/test_rpc_telegram.py b/tests/rpc/test_rpc_telegram.py index f669e9411..5f49c8bf7 100644 --- a/tests/rpc/test_rpc_telegram.py +++ b/tests/rpc/test_rpc_telegram.py @@ -1071,7 +1071,8 @@ def test_mix_tag_performance_handle(default_conf, update, ticker, fee, telegram._mix_tag_performance(update=update, context=MagicMock()) assert msg_mock.call_count == 1 assert 'Mix Tag Performance' in msg_mock.call_args_list[0][0][0] - assert 'TESTBUY TESTSELL\t0.00006217 BTC (6.20%) (1)' in msg_mock.call_args_list[0][0][0] + assert ('TESTBUY TESTSELL\t0.00006217 BTC (6.20%) (1)' + in msg_mock.call_args_list[0][0][0]) def test_count_handle(default_conf, update, ticker, fee, mocker) -> None: