__repr__(self) -> str |
|
delete(self, *args: Any, **kw: Any) -> 'TestResponse' |
Call :meth:`open` with ``method`` set to ``DELETE``. [extrait de delete.__doc__] |
delete_cookie(self, server_name: str, key: str, path: str = '/', domain: Optional[str] = None, secure: bool = False, httponly: bool = False, samesite: Optional[str] = None) -> None |
Deletes a cookie in the test client. [extrait de delete_cookie.__doc__] |
get(self, *args: Any, **kw: Any) -> 'TestResponse' |
Call :meth:`open` with ``method`` set to ``GET``. [extrait de get.__doc__] |
head(self, *args: Any, **kw: Any) -> 'TestResponse' |
Call :meth:`open` with ``method`` set to ``HEAD``. [extrait de head.__doc__] |
open(self, *args: Any, as_tuple: bool = False, buffered: bool = False, follow_redirects: bool = False, **kwargs: Any) -> 'TestResponse' |
Generate an environ dict from the given arguments, make a [extrait de open.__doc__] |
options(self, *args: Any, **kw: Any) -> 'TestResponse' |
Call :meth:`open` with ``method`` set to ``OPTIONS``. [extrait de options.__doc__] |
patch(self, *args: Any, **kw: Any) -> 'TestResponse' |
Call :meth:`open` with ``method`` set to ``PATCH``. [extrait de patch.__doc__] |
post(self, *args: Any, **kw: Any) -> 'TestResponse' |
Call :meth:`open` with ``method`` set to ``POST``. [extrait de post.__doc__] |
put(self, *args: Any, **kw: Any) -> 'TestResponse' |
Call :meth:`open` with ``method`` set to ``PUT``. [extrait de put.__doc__] |
resolve_redirect(self, response: 'TestResponse', buffered: bool = False) -> 'TestResponse' |
Perform a new request to the location given by the redirect [extrait de resolve_redirect.__doc__] |
run_wsgi_app(self, environ: 'WSGIEnvironment', buffered: bool = False) -> Tuple[Iterable[bytes], str, werkzeug.datastructures.Headers] |
Runs the wrapped WSGI app with the given environment. [extrait de run_wsgi_app.__doc__] |
set_cookie(self, server_name: str, key: str, value: str = '', max_age: Union[datetime.timedelta, int, NoneType] = None, expires: Union[str, datetime.datetime, int, float, NoneType] = None, path: str = '/', domain: Optional[str] = None, secure: bool = False, httponly: bool = False, samesite: Optional[str] = None, charset: str = 'utf-8') -> None |
Sets a cookie in the client's cookie jar. The server name [extrait de set_cookie.__doc__] |
trace(self, *args: Any, **kw: Any) -> 'TestResponse' |
Call :meth:`open` with ``method`` set to ``TRACE``. [extrait de trace.__doc__] |
Améliorations / Corrections
Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.
Emplacement :
Description des améliorations :