File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ def Options(symbol, data_source=None):
88
88
warnings .warn ("Options(symbol) is deprecated, use Options(symbol,"
89
89
" data_source) instead" , FutureWarning )
90
90
data_source = "yahoo"
91
- elif data_source == "yahoo" :
91
+ if data_source == "yahoo" :
92
92
return YahooOptions (symbol )
93
93
else :
94
94
raise NotImplementedError ("currently only yahoo supported" )
Original file line number Diff line number Diff line change @@ -329,6 +329,10 @@ def test_get_near_stock_price(self):
329
329
raise nose .SkipTest (e )
330
330
self .assertTrue (len (options ) > 1 )
331
331
332
+ def test_options_is_not_none (self ):
333
+ option = web .Options ('aapl' )
334
+ self .assertTrue (option is not None )
335
+
332
336
def test_get_call_data (self ):
333
337
try :
334
338
calls = self .aapl .get_call_data (expiry = self .expiry )
You can’t perform that action at this time.
0 commit comments