Minor test fix

This commit is contained in:
Matthias 2023-03-16 19:24:37 +01:00
parent 00054dcfde
commit e3e4fbd5ba

View File

@ -302,8 +302,7 @@ def test_telegram_status_closed_trade(default_conf, update, mocker, fee) -> None
telegram, _, msg_mock = get_telegram_testobject(mocker, default_conf) telegram, _, msg_mock = get_telegram_testobject(mocker, default_conf)
create_mock_trades(fee) create_mock_trades(fee)
trades = Trade.get_trades([Trade.is_open.is_(False)]) trade = Trade.get_trades([Trade.is_open.is_(False)]).first()
trade = trades[0]
context = MagicMock() context = MagicMock()
context.args = [str(trade.id)] context.args = [str(trade.id)]
telegram._status(update=update, context=context) telegram._status(update=update, context=context)