Exemplo n.º 1
0
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()
Exemplo n.º 2
0
 def tearDown(self):
     DatabaseManager.disconnect()
Exemplo n.º 3
0
 def tearDown(self):
     DatabaseManager.disconnect()
     self.send_message_mock.stop()  # pylint: disable=E1101
Exemplo n.º 4
0
    def tearDown(self):
        if self._process:
            self._process.terminate()

        stop_celery_worker()
        DatabaseManager.disconnect()