def test_yahoo_reader_class(self): r = YahooDailyReader('GOOG') df = r.read() self.assertEqual(df.Volume.loc['JAN-02-2015'], 1447600) session = requests.Session() r = YahooDailyReader('GOOG', session=session) self.assertTrue(r.session is session)
def test_yahoo_reader_class(self): r = YahooDailyReader("GOOG", start="JAN-01-2015") df = r.read() assert df.Volume.loc["JAN-02-2015"] == 1447500 session = requests.Session() r = YahooDailyReader("GOOG", session=session) assert r.session is session
def test_yahoo_reader_class(self): r = YahooDailyReader('GOOG') df = r.read() assert df.Volume.loc['JAN-02-2015'] == 1447500 session = requests.Session() r = YahooDailyReader('GOOG', session=session) assert r.session is session