Exemple #1
0
 def open(self, path='/', *args, **kwargs):
     print(kwargs.get('method', 'GET'), path)
     response = super(WrappedFlaskClient, self).open(path, *args, **kwargs)
     try:
         print_response(response)
     except Exception:
         traceback.print_exc()
     return response
Exemple #2
0
 def open(self, path='/', *args, **kwargs):
     newpath, open_method = self._endpoint_specials(path)
     print(kwargs.get('method', 'GET'), path)
     response = open_method(newpath, *args, **kwargs)
     try:
         print_response(response)
     except Exception:
         traceback.print_exc()
     return response