Skip to content
Myr

Correcting Custom Test Client class docs (#2004)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Afonso Queirós · committed by Markus Unterwaditzer · parent 92ce20e · Browse files · 1 file+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:flask/app.py+3 added-3 removed
876 unmodified lines
877878 from flask.testing import FlaskClient879880 class CustomClient(FlaskClient):881 def __init__(self, authentication=None, *args, **kwargs):882 FlaskClient.__init__(*args, **kwargs)883 self._authentication = authentication881 def __init__(self, *args, **kwargs):882 self._authentication = kwargs.pop("authentication")883 super(CustomClient,self).__init__( *args, **kwargs)884885 app.test_client_class = CustomClient886 client = app.test_client(authentication='Basic ....')887
1105 unmodified lines