Example #1
0
 def test_importList(self):
     HSGTCGHold.importList()
     hsg = HSGTCGHold.getlist(tradedate=datetime.datetime.now().date() -
                              datetime.timedelta(1))
     self.assertTrue(hsg.count() > 10,
                     '北向持股大于七千万的股票数量大于10, 实际数量:{}'.format(hsg.count()))
     self.assertTrue(isinstance(hsg[0].tradedate, datetime.date))
Example #2
0
def importHSGTCG():
    HSGTCGHold.importList()
    HSGTCG.importList()