Skip to content

Commit 578ea9b

Browse files
authored
TST: Yahoo Options - skip tests (#232)
1 parent c1b81f1 commit 578ea9b

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

pandas_datareader/tests/test_yahoo_options.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,17 @@ def test_get_underlying_price(self):
146146
raise nose.SkipTest(e)
147147
self.assertTrue(isinstance(quote_price, float))
148148

149-
def test_sample_page_price_quote_time1(self):
150149
# Tests the weekend quote time format
151150
price, quote_time = self.aapl._underlying_price_and_time_from_url(self.html1)
152151
self.assertTrue(isinstance(price, (int, float, complex)))
153152
self.assertTrue(isinstance(quote_time, (datetime, pd.Timestamp)))
154153

154+
# Tests the EDT page format
155+
# regression test for #8741
156+
price, quote_time = self.aapl._underlying_price_and_time_from_url(self.html2)
157+
self.assertTrue(isinstance(price, (int, float, complex)))
158+
self.assertTrue(isinstance(quote_time, (datetime, pd.Timestamp)))
159+
155160
def test_chop(self):
156161
# regression test for #7625
157162
self.aapl._chop_data(self.data1, above_below=2, underlying_price=np.nan)
@@ -169,13 +174,6 @@ def test_chop_out_of_strike_range(self):
169174
self.assertTrue(isinstance(chopped, pd.DataFrame))
170175
self.assertTrue(len(chopped) > 1)
171176

172-
def test_sample_page_price_quote_time2(self):
173-
# Tests the EDT page format
174-
# regression test for #8741
175-
price, quote_time = self.aapl._underlying_price_and_time_from_url(self.html2)
176-
self.assertTrue(isinstance(price, (int, float, complex)))
177-
self.assertTrue(isinstance(quote_time, (datetime, pd.Timestamp)))
178-
179177
def test_sample_page_chg_float(self):
180178
# Tests that numeric columns with comma's are appropriately dealt with
181179
self.assertEqual(self.data1['Chg'].dtype, 'float64')

0 commit comments

Comments
 (0)