示例#1
0
文件: request.py 项目: aitjcize/bb8
def teardown_appcontext(unused_exc):
    """Closes the database at the end of the request."""
    DatabaseManager.disconnect(commit=config.COMMIT_ON_APP_TEARDOWN)

    send_ga_track_info()
示例#2
0
 def tearDown(self):
     DatabaseManager.disconnect()
示例#3
0
 def tearDown(self):
     DatabaseManager.disconnect()
     self.send_message_mock.stop()  # pylint: disable=E1101
示例#4
0
    def tearDown(self):
        if self._process:
            self._process.terminate()

        stop_celery_worker()
        DatabaseManager.disconnect()