Skip to content

Commit

Permalink
fixing test_short_split test
Browse files Browse the repository at this point in the history
  • Loading branch information
lockefox committed Jun 11, 2018
1 parent 10cac0d commit 10e1a7b
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 29 deletions.
2 changes: 1 addition & 1 deletion publicAPI/split_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def execute_split(
def fetch_split_history(
region_id,
type_id,
fetch_source=api_config.SwitchCCPSource.ESI,
fetch_source=api_config.SwitchCCPSource.EMD,
data_range=400,
#split_cache_file=SPLIT_CACHE_FILE,
config=api_config.CONFIG,
Expand Down
54 changes: 27 additions & 27 deletions tests/test_forecast_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,35 +82,35 @@ def test_fetch_emd_history_fail(config=CONFIG):
'key': 'typeID,regionID,date',
'columns': 'typeID,regionID,date,lowPrice,highPrice,avgPrice,volume,orders',
'result':[
{"row": {
"typeID": "38",
"regionID": "10000002",
"date": "2015-03-28",
"lowPrice": "674.02",
"highPrice": "682.65",
"avgPrice": "681.99",
"volume": "43401081",
"orders": "1808"
{'row': {
'typeID': '38',
'regionID': '10000002',
'date': '2015-03-28',
'lowPrice': '674.02',
'highPrice': '682.65',
'avgPrice': '681.99',
'volume': '43401081',
'orders': '1808'
}},
{"row": {
"typeID": "38",
"regionID": "10000002",
"date": "2015-03-29",
"lowPrice": "677.29",
"highPrice": "681.95",
"avgPrice": "681.89",
"volume": "46045538",
"orders": "1770"
{'row': {
'typeID': '38',
'regionID': '10000002',
'date': '2015-03-29',
'lowPrice': '677.29',
'highPrice': '681.95',
'avgPrice': '681.89',
'volume': '46045538',
'orders': '1770'
}},
{"row": {
"typeID": "38",
"regionID": "10000002",
"date": "2015-03-30",
"lowPrice": "678.93",
"highPrice": "684",
"avgPrice": "679.14",
"volume": "56083217",
"orders": "1472"
{'row': {
'typeID': '38',
'regionID': '10000002',
'date': '2015-03-30',
'lowPrice': '678.93',
'highPrice': '684',
'avgPrice': '679.14',
'volume': '56083217',
'orders': '1472'
}}
]
}
Expand Down
4 changes: 3 additions & 1 deletion tests/test_split_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,9 @@ def test_short_split(self):
data_range=short_days,
config=ROOT_CONFIG
)
assert test_data_emd.equals(forecast_utils.parse_emd_data(emd_data_raw['result']))

assert test_data_emd.equals(
forecast_utils.parse_emd_data(emd_data_raw['result']))

def days_since_date(date_str):
"""return number of days since date requested
Expand Down

0 comments on commit 10e1a7b

Please sign in to comment.