Beispiel #1
0
 def test_db_connection_test_fails(self):
     """runs check_db_connection function after dropping database"""
     with self.app.app_context():
         database.db.drop_all()
         with current_app.test_request_context():
             response = Retriever.check_db_connection()
             self.assertEqual(response.status_code, 500)
Beispiel #2
0
 def get():
     return Retriever.check_db_connection()