コード例 #1
0
def loadData(s_symbol):
    d_data = providers.get().load(s_symbol)
    quotes, dates = [[], []]
    for date in sorted(d_data):
        dates.append(date2num(date))
        quotes.append(d_data[date][4])
    return [dates, quotes]
コード例 #2
0
def loadData(s_symbol):
    d_data = providers.get().load(s_symbol)
    quotes, dates = [[], []]
    for date in sorted(d_data):
        dates.append(date2num(date))
        quotes.append(d_data[date][4])
    return [dates, quotes]
コード例 #3
0
 def test_should_have_get_method(self):
     locator.get()
コード例 #4
0
 def test_locator_should_return_provider(self):
     provider = locator.get()
     assert isinstance(provider, base.Provider)