move parse_ticker_dataframe outside Analyze class

This commit is contained in:
Janne Sinivirta
2018-07-10 13:04:37 +03:00
parent 85e6c9585a
commit f6b8c2b40f
5 changed files with 37 additions and 37 deletions

View File

@@ -3,14 +3,14 @@ import json
import pytest
from pandas import DataFrame
from freqtrade.analyze import Analyze
from freqtrade.analyze import parse_ticker_dataframe
from freqtrade.strategy.default_strategy import DefaultStrategy
@pytest.fixture
def result():
with open('freqtrade/tests/testdata/ETH_BTC-1m.json') as data_file:
return Analyze.parse_ticker_dataframe(json.load(data_file))
return parse_ticker_dataframe(json.load(data_file))
def test_default_strategy_structure():