Update unit tests to be compatible with this refactoring

Updated:
- test_acl_pair to be compatible with FreqtradeBot() class
- test_default_strategy.py to be compatible with Analyze() class
This commit is contained in:
Gerald Lonlas
2018-02-12 00:37:19 -08:00
parent 383fb6d20e
commit 766ec5ad0f
3 changed files with 70 additions and 40 deletions

View File

@@ -2,13 +2,13 @@ import json
import pytest
from pandas import DataFrame
from freqtrade.strategy.default_strategy import DefaultStrategy, class_name
from freqtrade.analyze import parse_ticker_dataframe
from freqtrade.analyze import Analyze
@pytest.fixture
def result():
with open('freqtrade/tests/testdata/BTC_ETH-1.json') as data_file:
return parse_ticker_dataframe(json.load(data_file))
return Analyze.parse_ticker_dataframe(json.load(data_file))
def test_default_strategy_class_name():