Skip to content

Commit

Permalink
Remove test for load_tickerdata
Browse files Browse the repository at this point in the history
  • Loading branch information
xmatthias committed Dec 28, 2019
1 parent 5479c67 commit 4b277af
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions tests/data/test_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
_load_cached_data_for_updating,
convert_trades_to_ohlcv, get_timerange,
load_data, load_pair_history,
load_tickerdata_file,
refresh_backtest_ohlcv_data,
refresh_backtest_trades_data, refresh_data,
trim_tickerlist, validate_backtest_data)
Expand Down Expand Up @@ -303,17 +302,6 @@ def test_download_backtesting_data_exception(ticker_history, mocker, caplog,
)


def test_load_tickerdata_file(testdatadir) -> None:
# 7 does not exist in either format.
assert not load_tickerdata_file(testdatadir, 'UNITTEST/BTC', '7m')
# 1 exists only as a .json
tickerdata = load_tickerdata_file(testdatadir, 'UNITTEST/BTC', '1m')
assert _BTC_UNITTEST_LENGTH == len(tickerdata)
# 8 .json is empty and will fail if it's loaded. .json.gz is a copy of 1.json
tickerdata = load_tickerdata_file(testdatadir, 'UNITTEST/BTC', '8m')
assert _BTC_UNITTEST_LENGTH == len(tickerdata)


def test_load_partial_missing(testdatadir, caplog) -> None:
# Make sure we start fresh - test missing data at start
start = arrow.get('2018-01-01T00:00:00')
Expand Down

0 comments on commit 4b277af

Please sign in to comment.