From 77f8f8658cd6e820bd0551757e2fd8a7d66ac2df Mon Sep 17 00:00:00 2001 From: Sam Germain Date: Sat, 13 Nov 2021 19:36:49 -0600 Subject: [PATCH] test_rpc_telegram short test --- tests/rpc/test_rpc_telegram.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/rpc/test_rpc_telegram.py b/tests/rpc/test_rpc_telegram.py index 522883a36..323eddd4d 100644 --- a/tests/rpc/test_rpc_telegram.py +++ b/tests/rpc/test_rpc_telegram.py @@ -1261,8 +1261,8 @@ def test_edge_enabled(edge_conf, update, mocker) -> None: assert 'Winrate' not in msg_mock.call_args_list[0][0][0] -@pytest.mark.parametrize('is_short', [True, False]) -def test_telegram_trades(mocker, update, default_conf, fee, is_short): +# TODO-lev: @pytest.mark.parametrize('is_short', [True, False]) +def test_telegram_trades(mocker, update, default_conf, fee): telegram, _, msg_mock = get_telegram_testobject(mocker, default_conf) @@ -1294,8 +1294,8 @@ def test_telegram_trades(mocker, update, default_conf, fee, is_short): msg_mock.call_args_list[0][0][0])) -# TODO-lev: @pytest.mark.parametrize('is_short', [True, False]) -def test_telegram_delete_trade(mocker, update, default_conf, fee): +@pytest.mark.parametrize('is_short', [True, False]) +def test_telegram_delete_trade(mocker, update, default_conf, fee, is_short): telegram, _, msg_mock = get_telegram_testobject(mocker, default_conf) context = MagicMock() @@ -1305,7 +1305,7 @@ def test_telegram_delete_trade(mocker, update, default_conf, fee): assert "Trade-id not set." in msg_mock.call_args_list[0][0][0] msg_mock.reset_mock() - create_mock_trades(fee, False) + create_mock_trades(fee, is_short) context = MagicMock() context.args = [1]