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