def patch(self, endpoint, data, csrf=None): url = url_for(endpoint) self.set_csrf(csrf) response = self.client.patch( url, data=json.dumps(data), content_type='application/json', ) self.headers = None return response
def delete(self, endpoint): url = url_for(endpoint) return self.client.patch(url)
def get(self, endpoint): url = url_for(endpoint) return self.client.get(url)