示例#1
0
    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)
示例#2
0
    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)
示例#3
0
    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)
示例#4
0
    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)
示例#5
0
 def tearDownClass(cls):
     cls.couch_user.delete()
     Session.remove()
示例#6
0
 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()
示例#7
0
 def tearDownClass(cls):
     Session.remove()
 def tearDownClass(cls):
     Session.remove()
 def tearDownClass(cls):
     cls.couch_user.delete()
     Session.remove()