mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 02:12:01 +00:00
fix test_exit_positions
This commit is contained in:
parent
33b421014d
commit
1fccdd8cda
|
@ -1265,14 +1265,14 @@ def test_exit_positions(mocker, default_conf_usdt, limit_order, is_short, caplog
|
||||||
trades = [trade]
|
trades = [trade]
|
||||||
freqtrade.wallets.update()
|
freqtrade.wallets.update()
|
||||||
n = freqtrade.exit_positions(trades)
|
n = freqtrade.exit_positions(trades)
|
||||||
assert n == 0
|
assert n == 1
|
||||||
# Test amount not modified by fee-logic
|
# Test amount not modified by fee-logic
|
||||||
assert not log_has_re(r"Applying fee to amount for Trade .*", caplog)
|
assert not log_has_re(r"Applying fee to amount for Trade .*", caplog)
|
||||||
|
|
||||||
gra = mocker.patch("freqtrade.freqtradebot.FreqtradeBot.get_real_amount", return_value=0.0)
|
gra = mocker.patch("freqtrade.freqtradebot.FreqtradeBot.get_real_amount", return_value=0.0)
|
||||||
# test amount modified by fee-logic
|
# test amount modified by fee-logic
|
||||||
n = freqtrade.exit_positions(trades)
|
n = freqtrade.exit_positions(trades)
|
||||||
assert n == 0
|
assert n == 1
|
||||||
assert gra.call_count == 0
|
assert gra.call_count == 0
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user