Fix test_clean_dry_run_db failing test

This commit is contained in:
Gerald Lonlas 2018-01-25 21:05:10 -08:00
parent 4fe6ae0bae
commit 0baffd94a4

View File

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