fetching new testing data for oneMin and fiveMin intervals

This commit is contained in:
gcarq
2017-11-15 00:11:46 +01:00
parent fb7ea169d4
commit 3475a07522
55 changed files with 80 additions and 32 deletions

View File

@@ -1,9 +1,7 @@
# pragma pylint: disable=missing-docstring
import json
from datetime import datetime
from unittest.mock import MagicMock
import os
import pytest
from jsonschema import validate
from telegram import Message, Chat, Update
@@ -68,17 +66,6 @@ def backtest_conf():
}
@pytest.fixture(scope="module")
def backdata():
path = os.path.abspath(os.path.dirname(__file__))
result = {}
for pair in ['btc-neo', 'btc-eth', 'btc-omg', 'btc-edg', 'btc-pay',
'btc-pivx', 'btc-qtum', 'btc-mtl', 'btc-etc', 'btc-ltc']:
with open('{abspath}/testdata/{pair}.json'.format(abspath=path, pair=pair)) as fp:
result[pair] = json.load(fp)
return result
@pytest.fixture
def update():
_update = Update(0)