def testdata_1m_btc() -> DataFrame: with open("tests/testdata/UNITTEST_BTC-1m.json") as data_file: return ticker_history_to_dataframe(json.load(data_file))
def test_ticker_to_dataframe(): with open('tests/testdata/UNITTEST_BTC-1m.json') as data_file: data = ticker_history_to_dataframe(json.load(data_file)) assert len(data) > 0