Skip to content

TST: mark google tests as slow #3988

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions pandas/io/tests/test_google.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -27,24 +28,27 @@ 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']
pan = web.get_data_google(sl, '2012')
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')
Expand Down