Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 5
0
 def tearDownClass(cls):
     cls.couch_user.delete()
     Session.remove()
Ejemplo n.º 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()
Ejemplo n.º 7
0
 def tearDownClass(cls):
     Session.remove()
Ejemplo n.º 8
0
 def tearDownClass(cls):
     Session.remove()
Ejemplo n.º 9
0
 def tearDownClass(cls):
     cls.couch_user.delete()
     Session.remove()