diff --git a/pandas/io/tests/test_google.py b/pandas/io/tests/test_google.py index 8ceda94f07a52..f3ab089546a1c 100644 --- a/pandas/io/tests/test_google.py +++ b/pandas/io/tests/test_google.py @@ -5,11 +5,12 @@ import numpy as np import pandas as pd import pandas.io.data as web +from numpy.testing.decorators import slow from pandas.util.testing import network, with_connectivity_check class TestGoogle(unittest.TestCase): - + @slow @with_connectivity_check("http://www.google.com") def test_google(self): # asserts that google is minimally working and that it throws @@ -27,17 +28,19 @@ def test_google(self): lambda: web.DataReader("NON EXISTENT TICKER", 'google', start, end)) - @network def test_get_quote(self): self.assertRaises(NotImplementedError, lambda: web.get_quote_google(pd.Series(['GOOG', 'AAPL', 'GOOG']))) + + @slow @with_connectivity_check('http://www.google.com') def test_get_goog_volume(self): df = web.get_data_google('GOOG') assert df.Volume.ix['OCT-08-2010'] == 2863473 + @slow @with_connectivity_check('http://www.google.com') def test_get_multi1(self): sl = ['AAPL', 'AMZN', 'GOOG'] @@ -45,6 +48,7 @@ def test_get_multi1(self): ts = pan.Close.GOOG.index[pan.Close.AAPL > pan.Close.GOOG] assert ts[0].dayofyear == 96 + @slow @with_connectivity_check('http://www.google.com') def test_get_multi2(self): pan = web.get_data_google(['GE', 'MSFT', 'INTC'], 'JAN-01-12', 'JAN-31-12')