Пример #1
0
 def testLoadBalance(self):
     path = "/Users/robertb/Applications/scheduledfeeds/archive/SampleData/cashbalances/ubsvollincallbal20130528 BAD2_____.csv"
     db_url="mysql://*****:*****@localhost/kew_pe?charset=utf8"
     notify_email = ["*****@*****.**"]
     cbf = LoadCashBalanceFilter(path, db_url, notify_email, '../kew_pe.conf')
     
     cbf.run()
Пример #2
0
 def setUp(self):
     dburl = 'mysql://*****:*****@localhost/kew_pe?charset=utf8' 
     self.c = Control(file_archive=None,db_url=dburl)
     path1 = 'UBSVollinCallBal20130605.csv'
     path2 = os.path.abspath('')
     #self.report = CashBalanceReportFeed(path2, dburl)
     self.filter = LoadCashBalanceFilter(path1, dburl)
Пример #3
0
class Test(unittest.TestCase):


    def setUp(self):
        dburl = 'mysql://*****:*****@localhost/kew_pe?charset=utf8' 
        self.c = Control(file_archive=None,db_url=dburl)
        path1 = 'UBSVollinCallBal20130605.csv'
        path2 = os.path.abspath('')
        #self.report = CashBalanceReportFeed(path2, dburl)
        self.filter = LoadCashBalanceFilter(path1, dburl)
        
        #c.fetch_cash_exception_data()

    def tearDown(self):
        pass

    def testreport(self):
        #self.report.run()
        self.filter.run()