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

        stop_celery_worker()
        DatabaseManager.disconnect()