mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
test_persistence: fix reference before assignment
This commit is contained in:
parent
4ee5271de7
commit
c3d0980763
|
@ -406,9 +406,9 @@ def test_migrate_new(mocker, default_conf, fee):
|
|||
stake=default_conf.get("stake_amount"),
|
||||
amount=amount
|
||||
)
|
||||
engine = create_engine('sqlite://')
|
||||
mocker.patch('freqtrade.persistence.create_engine', lambda *args, **kwargs: engine)
|
||||
|
||||
engine = create_engine('sqlite://')
|
||||
# Create table using the old format
|
||||
engine.execute(create_table_old)
|
||||
engine.execute(insert_table_old)
|
||||
|
|
Loading…
Reference in New Issue
Block a user