コード例 #1
0
ファイル: test_models.py プロジェクト: Mirage30/suppliers
 def setUp(self):
     """ Initialize the Cloudant database """
     Supplier.init_db("test")
     Supplier.remove_all()
コード例 #2
0
def data_reset():
    """ Removes all Suppliers from the database """
    Supplier.remove_all()
コード例 #3
0
ファイル: test_service.py プロジェクト: Mirage30/suppliers
 def setUp(self):
     self.app = app.test_client()
     initialize_logging(logging.INFO)
     Supplier.init_db("test")
     Supplier.remove_all()
コード例 #4
0
def suppliers_reset():
    """ Removes all suppliers from the database """
    Supplier.remove_all()
    return make_response('', status.HTTP_204_NO_CONTENT)