reverted to prior indexing method

This commit is contained in:
Davis Thames
2018-06-10 14:13:28 -05:00
parent f7b3da50a7
commit a2b4d34ab1
2 changed files with 4 additions and 11 deletions

View File

@@ -55,10 +55,11 @@ class TestTiingoWithPython(TestCase):
self.assertTrue(isinstance(prices, pd.Series))
assert len(prices.index) == 10
def test_column_error(self):
def test_metric_name_column_error(self):
with self.assertRaises(APIColumnNameError):
self._client.get_dataframe(['GOOGL', 'AAPL'], startDate='2018-01-05',
endDate='2018-01-19', metric_name='xopen', frequency='weekly')
@vcr.use_cassette('tests/fixtures/ticker_price_pandas_single.yaml')
def test_pandas_edge_case(self):
"""Test single price/date being returned as a frame"""