示例#1
0
 def setUp(self):
     self.remove('cache*')
     self.cache = db.open()
     self.var = BlueDollar(self.cache)
     self.date_list = [datetime.date(2014,10,8) + datetime.timedelta(days=i)
                       for i in range(3)]
     self.values = [14.65, 14.83, 14.95]
示例#2
0
 def setUp(self):
     self.remove('cache*')
     self.cache = db.open()
     self.var = Chicago(self.cache)
     self.date_list = [datetime.date(2014,10,8) + datetime.timedelta(days=i)
                       for i in range(3)]
     self.values = [None, None, None]
示例#3
0
 def setUp(self):
     self.day = datetime.date(2014, 10, 8)
     self.date_list = map(lambda i: self.day - datetime.timedelta(days=i),
                          range(1, 8))
     self.cache = db.open()
     self.dollar = BlueDollar(self.cache)
     self.regression = statistic.TimeRegression(self.date_list,
                                                self.day,
                                                [self.dollar])
示例#4
0
 def setUp(self):
     self.remove('cache*')
     self.cache = db.open()
     self.var = SanMartin(self.cache)
     self.date_list = [datetime.date(2014, 9, 8) +
                       datetime.timedelta(days=i)
                       for i in range(3)]
     self.today_list = [datetime.datetime.now().date()]
     self.values = [2330., 2320., 2310.]
示例#5
0
 def setUp(self):
     self.remove('cache*')
     self.cache = db.open()
     self.var = Chicago(self.cache)
     self.date_list = [
         datetime.date(2014, 10, 8) + datetime.timedelta(days=i)
         for i in range(3)
     ]
     self.values = [None, None, None]
示例#6
0
 def setUp(self):
     self.remove('cache*')
     self.cache = db.open()
     self.var = BlueDollar(self.cache)
     self.date_list = [
         datetime.date(2014, 10, 8) + datetime.timedelta(days=i)
         for i in range(3)
     ]
     self.values = [14.65, 14.83, 14.95]
 def setUp(self):
     self.day = datetime.date(2014, 10, 8)
     self.date_list = map(lambda i: self.day - datetime.timedelta(days=i),
                          range(1, 8))
     self.cache = db.open()
     self.dollar = BlueDollar(self.cache)
     self.sanmartin = SanMartin(self.cache)
     self.regression = statistic.VariableRegression(
         self.date_list, self.day, [self.dollar, self.sanmartin])
示例#8
0
 def setUp(self):
     self.remove('cache*')
     self.cache = db.open()
     self.var = SanMartin(self.cache)
     self.date_list = [
         datetime.date(2014, 9, 8) + datetime.timedelta(days=i)
         for i in range(3)
     ]
     self.today_list = [datetime.datetime.now().date()]
     self.values = [2330., 2320., 2310.]
示例#9
0
 def setUp(self):
     self.remove('cache*')
     self.cache = db.open()
     self.var = BCR(self.cache)
     self.date_list = [
         datetime.date(2014, 10, 8) + datetime.timedelta(days=i)
         for i in range(3)
     ]
     self.today = datetime.datetime.now().date()
     self.yesterday = self.today - datetime.timedelta(days=1)
     self.values = {'rosario': [2260., 2300., 2300.]}
示例#10
0
 def setUp(self):
     self.remove('cache*')
     self.cache = db.open()
     self.var = Afascl(self.cache)
     self.date_list = [datetime.date(2014,10,8) + datetime.timedelta(days=i)
                       for i in range(3)]
     self.today = datetime.datetime.now().date()
     self.values = {
         'bla': [2140., 2140., 2120.],
         'san': [2260., 2300., 2300.]
     }
示例#11
0
 def setUp(self):
     self.remove('cache*')
     self.cache = db.open()
     self.var = BCR(self.cache)
     self.date_list = [datetime.date(2014, 10, 8) +
                       datetime.timedelta(days=i)
                       for i in range(3)]
     self.today = datetime.datetime.now().date()
     self.yesterday = self.today - datetime.timedelta(days=1)
     self.values = {
         'rosario': [2260., 2300., 2300.]
     }
示例#12
0
 def setUp(self):
     self.remove('cache*')
     self.cache = db.open()
     self.var = Afascl(self.cache)
     self.date_list = [
         datetime.date(2014, 10, 8) + datetime.timedelta(days=i)
         for i in range(3)
     ]
     self.today = datetime.datetime.now().date()
     self.values = {
         'bla': [2140., 2140., 2120.],
         'san': [2260., 2300., 2300.]
     }
示例#13
0
 def setUp(self):
     self.remove('cache*')
     self.cache = db.open()
示例#14
0
 def setUp(self):
     self.remove('cache*')
     self.cache = db.open()
示例#15
0
 def setUp(self):
     self.remove('cache*')
     self.cache = db.open()
     self.var = Variable(self.cache)
     self.today = datetime.datetime.now().date()
     self.yesterday = self.today - datetime.timedelta(days=1)
示例#16
0
 def setUp(self):
     self.remove('cache*')
     self.cache = db.open()
     self.var = Variable(self.cache)
     self.today = datetime.datetime.now().date()
     self.yesterday = self.today - datetime.timedelta(days=1)