Merge pull request #439 from gcarq/fix/test_clean_dry_run_db

Fix test_clean_dry_run_db failing test
This commit is contained in:
Janne Sinivirta 2018-01-26 08:24:25 +02:00 committed by GitHub
commit 90aae6c3a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -1,8 +1,7 @@
# pragma pylint: disable=missing-docstring
import os
import pytest
from sqlalchemy import create_engine
from freqtrade.exchange import Exchanges
from freqtrade.persistence import Trade, init, clean_dry_run_db
@ -312,8 +311,8 @@ def test_calc_profit_percent(limit_buy_order, limit_sell_order):
assert trade.calc_profit_percent(fee=0.003) == 0.0614782
def test_clean_dry_run_db(default_conf, mocker):
init(default_conf)
def test_clean_dry_run_db(default_conf):
init(default_conf, create_engine('sqlite://'))
# Simulate dry_run entries
trade = Trade(