Exemplo n.º 1
0
 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
Exemplo n.º 2
0
 def delete(self, endpoint):
     url = url_for(endpoint)
     return self.client.patch(url)
Exemplo n.º 3
0
 def get(self, endpoint):
     url = url_for(endpoint)
     return self.client.get(url)