예제 #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()