Fix bug in exit-count detection
This commit is contained in:
@@ -2057,10 +2057,11 @@ def test_get_best_pair_lev(fee):
|
||||
|
||||
|
||||
@pytest.mark.usefixtures("init_persistence")
|
||||
def test_get_exit_order_count(fee):
|
||||
@pytest.mark.parametrize('is_short', [True, False])
|
||||
def test_get_exit_order_count(fee, is_short):
|
||||
|
||||
create_mock_trades_usdt(fee)
|
||||
trade = Trade.get_trades([Trade.pair == 'ETC/USDT']).first()
|
||||
create_mock_trades(fee, is_short=is_short)
|
||||
trade = Trade.get_trades([Trade.pair == 'ETC/BTC']).first()
|
||||
assert trade.get_exit_order_count() == 1
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user