def reset_inventory(): """ Delete all Inventory This endpoint will delete all Inventory """ app.logger.info('Delete all inventory') Inventory.remove_all() return make_response('', status.HTTP_204_NO_CONTENT)
def setUp(self): """ Runs before each test """ Inventory.init_db("test") Inventory.remove_all() self.app = app.test_client()
def setUp(self): """ Runs before each test """ Inventory.init_db("test") Inventory.remove_all()
def inventory_reset(): """ Removes all inventory from the database """ Inventory.remove_all() return make_response('', status.HTTP_204_NO_CONTENT)