updated test_reupdate_enter_order_fees to usdt
This commit is contained in:
parent
ffa9a3ac7d
commit
5ce09c7519
@ -4043,9 +4043,9 @@ def test_update_closed_trades_without_assigned_fees(mocker, default_conf, fee):
|
|||||||
assert trade.fee_close_currency is not None
|
assert trade.fee_close_currency is not None
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.usefixtures("init_persistence")
|
@pytest.mark.usefixtures("init_persistence_usdt")
|
||||||
def test_reupdate_enter_order_fees(mocker, default_conf, fee, caplog):
|
def test_reupdate_enter_order_fees(mocker, default_conf_usdt, fee, caplog):
|
||||||
freqtrade = get_patched_freqtradebot(mocker, default_conf)
|
freqtrade = get_patched_freqtradebot(mocker, default_conf_usdt)
|
||||||
mock_uts = mocker.patch('freqtrade.freqtradebot.FreqtradeBot.update_trade_state')
|
mock_uts = mocker.patch('freqtrade.freqtradebot.FreqtradeBot.update_trade_state')
|
||||||
|
|
||||||
create_mock_trades(fee)
|
create_mock_trades(fee)
|
||||||
@ -4063,13 +4063,13 @@ def test_reupdate_enter_order_fees(mocker, default_conf, fee, caplog):
|
|||||||
# Test with trade without orders
|
# Test with trade without orders
|
||||||
trade = Trade(
|
trade = Trade(
|
||||||
pair='XRP/ETH',
|
pair='XRP/ETH',
|
||||||
stake_amount=0.001,
|
stake_amount=60.0,
|
||||||
fee_open=fee.return_value,
|
fee_open=fee.return_value,
|
||||||
fee_close=fee.return_value,
|
fee_close=fee.return_value,
|
||||||
open_date=arrow.utcnow().datetime,
|
open_date=arrow.utcnow().datetime,
|
||||||
is_open=True,
|
is_open=True,
|
||||||
amount=20,
|
amount=30,
|
||||||
open_rate=0.01,
|
open_rate=2.0,
|
||||||
exchange='binance',
|
exchange='binance',
|
||||||
)
|
)
|
||||||
Trade.query.session.add(trade)
|
Trade.query.session.add(trade)
|
||||||
|
Loading…
Reference in New Issue
Block a user