Attempt Fix random test failure
This commit is contained in:
parent
551fe7d820
commit
75868a851b
@ -597,7 +597,6 @@ def test_api_trades(botclient, mocker, fee, markets, is_short):
|
|||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize('is_short', [True, False])
|
@pytest.mark.parametrize('is_short', [True, False])
|
||||||
@pytest.mark.usefixtures("init_persistence")
|
|
||||||
def test_api_trade_single(botclient, mocker, fee, ticker, markets, is_short):
|
def test_api_trade_single(botclient, mocker, fee, ticker, markets, is_short):
|
||||||
ftbot, client = botclient
|
ftbot, client = botclient
|
||||||
patch_get_signal(ftbot, enter_long=not is_short, enter_short=is_short)
|
patch_get_signal(ftbot, enter_long=not is_short, enter_short=is_short)
|
||||||
@ -620,7 +619,6 @@ def test_api_trade_single(botclient, mocker, fee, ticker, markets, is_short):
|
|||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize('is_short', [True, False])
|
@pytest.mark.parametrize('is_short', [True, False])
|
||||||
@pytest.mark.usefixtures("init_persistence")
|
|
||||||
def test_api_delete_trade(botclient, mocker, fee, markets, is_short):
|
def test_api_delete_trade(botclient, mocker, fee, markets, is_short):
|
||||||
ftbot, client = botclient
|
ftbot, client = botclient
|
||||||
patch_get_signal(ftbot, enter_long=not is_short, enter_short=is_short)
|
patch_get_signal(ftbot, enter_long=not is_short, enter_short=is_short)
|
||||||
@ -637,7 +635,6 @@ def test_api_delete_trade(botclient, mocker, fee, markets, is_short):
|
|||||||
assert_response(rc, 502)
|
assert_response(rc, 502)
|
||||||
|
|
||||||
create_mock_trades(fee, is_short=is_short)
|
create_mock_trades(fee, is_short=is_short)
|
||||||
Trade.query.session.flush()
|
|
||||||
|
|
||||||
ftbot.strategy.order_types['stoploss_on_exchange'] = True
|
ftbot.strategy.order_types['stoploss_on_exchange'] = True
|
||||||
trades = Trade.query.all()
|
trades = Trade.query.all()
|
||||||
|
Loading…
Reference in New Issue
Block a user