コード例 #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
ファイル: testrunner.py プロジェクト: aristide/commcare-hq
    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
ファイル: testrunner.py プロジェクト: nnestle/commcare-hq
    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
ファイル: test_sql_reports.py プロジェクト: ekush/commcare-hq
 def tearDownClass(cls):
     cls.couch_user.delete()
     Session.remove()
コード例 #6
0
ファイル: test_view.py プロジェクト: johan--/commcare-hq
 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()
コード例 #8
0
 def tearDownClass(cls):
     Session.remove()
コード例 #9
0
 def tearDownClass(cls):
     cls.couch_user.delete()
     Session.remove()