def run_db_tests(self, suite): print("Running {0} tests with database".format(suite.countTestCases())) old_config = self.setup_databases() result = self.run_suite(suite) from corehq.db import Session, connection_manager Session.remove() connection_manager.dispose_all() self.teardown_databases(old_config) return self.suite_result(suite, result)
def run_db_tests(self, suite): print("Running {0} tests with database".format(suite.countTestCases())) old_config = self.setup_databases() result = self.run_suite(suite) from corehq.db import _engine, Session Session.remove() _engine.dispose() self.teardown_databases(old_config) return self.suite_result(suite, result)
def tearDownClass(cls): cls.couch_user.delete() Session.remove()
def tearDownClass(cls): cls._delete_everything() # todo: understand why this is necessary. the view call uses the session and the # signal doesn't fire to kill it. Session.remove()
def tearDownClass(cls): Session.remove()