Ejemplo n.º 1
0
    def test_avoid_duplicates(self):
        import_csv(self.session, self.csvfile, self.account)
        import_csv(self.session, self.csvfile, self.account)

        self.assertEqual(1, self.session.query(ImportBatch).count())
Ejemplo n.º 2
0
    def test_import_csv(self):
        import_csv(self.session, self.csvfile, self.account)

        self.assertEqual(1, self.session.query(ImportBatch).count())
        self.assertEqual(5, self.session.query(FundTransaction).count())