change while-loop to enumerate - add intensified test for this scenario

This commit is contained in:
xmatthias 2018-07-01 19:55:51 +02:00
parent e39d88ef65
commit 937644a04b
1 changed files with 3 additions and 0 deletions

View File

@ -446,6 +446,8 @@ def test_migrate_new(mocker, default_conf, fee, caplog):
# fake previous backup
engine.execute("create table trades_bak as select * from trades")
engine.execute("create table trades_bak1 as select * from trades")
# Run init to test migration
init(default_conf)
@ -464,6 +466,7 @@ def test_migrate_new(mocker, default_conf, fee, caplog):
assert trade.stop_loss == 0.0
assert trade.initial_stop_loss == 0.0
assert log_has("trying trades_bak1", caplog.record_tuples)
assert log_has("trying trades_bak2", caplog.record_tuples)
def test_adjust_stop_loss(limit_buy_order, limit_sell_order, fee):