Exemple #1
0
 def setUp(self):
     """ Initialize the Cloudant database """
     Supplier.init_db("test")
     Supplier.remove_all()
Exemple #2
0
def data_reset():
    """ Removes all Suppliers from the database """
    Supplier.remove_all()
Exemple #3
0
 def setUp(self):
     self.app = app.test_client()
     initialize_logging(logging.INFO)
     Supplier.init_db("test")
     Supplier.remove_all()
Exemple #4
0
def suppliers_reset():
    """ Removes all suppliers from the database """
    Supplier.remove_all()
    return make_response('', status.HTTP_204_NO_CONTENT)