Example #1
0
 def teardown_method(self, method):
     db.session.delete(self.transaction)
     db.session.delete(self.account1)
     db.session.delete(self.account2)
     db.session.delete(self.account_type)
     db.session.commit()
     delete_user(self.user)
Example #2
0
 def teardown_method(self, method):
     db.session.delete(self.acct_salary)
     db.session.delete(self.acct_groceries)
     db.session.delete(self.acct_bank)
     db.session.delete(self.acct_type_income)
     db.session.delete(self.acct_type_expenses)
     db.session.delete(self.acct_type_assets)
     db.session.commit()
     delete_user(self.user)
Example #3
0
 def teardown_class(self):
     delete_user(self.user)
Example #4
0
 def teardown_method(self, method):
     delete_user(self.user)
     db.session.delete(self.account_type)
     db.session.commit()