mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 18:23:55 +00:00
test_rpc_telegram short test
This commit is contained in:
parent
ca9805112d
commit
77f8f8658c
|
@ -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]
|
assert 'Winrate' not in msg_mock.call_args_list[0][0][0]
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize('is_short', [True, False])
|
# TODO-lev: @pytest.mark.parametrize('is_short', [True, False])
|
||||||
def test_telegram_trades(mocker, update, default_conf, fee, is_short):
|
def test_telegram_trades(mocker, update, default_conf, fee):
|
||||||
|
|
||||||
telegram, _, msg_mock = get_telegram_testobject(mocker, default_conf)
|
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]))
|
msg_mock.call_args_list[0][0][0]))
|
||||||
|
|
||||||
|
|
||||||
# TODO-lev: @pytest.mark.parametrize('is_short', [True, False])
|
@pytest.mark.parametrize('is_short', [True, False])
|
||||||
def test_telegram_delete_trade(mocker, update, default_conf, fee):
|
def test_telegram_delete_trade(mocker, update, default_conf, fee, is_short):
|
||||||
|
|
||||||
telegram, _, msg_mock = get_telegram_testobject(mocker, default_conf)
|
telegram, _, msg_mock = get_telegram_testobject(mocker, default_conf)
|
||||||
context = MagicMock()
|
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]
|
assert "Trade-id not set." in msg_mock.call_args_list[0][0][0]
|
||||||
|
|
||||||
msg_mock.reset_mock()
|
msg_mock.reset_mock()
|
||||||
create_mock_trades(fee, False)
|
create_mock_trades(fee, is_short)
|
||||||
|
|
||||||
context = MagicMock()
|
context = MagicMock()
|
||||||
context.args = [1]
|
context.args = [1]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user