Skip to content

Commit

Permalink
Correcting Custom Test Client class docs (#2004)
Browse files Browse the repository at this point in the history
  • Loading branch information
aqueiros authored and untitaker committed Sep 5, 2016
1 parent 92ce20e commit ccd02bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flask/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -878,9 +878,9 @@ def test_client(self, use_cookies=True, **kwargs):
from flask.testing import FlaskClient
class CustomClient(FlaskClient):
def __init__(self, authentication=None, *args, **kwargs):
FlaskClient.__init__(*args, **kwargs)
self._authentication = authentication
def __init__(self, *args, **kwargs):
self._authentication = kwargs.pop("authentication")
super(CustomClient,self).__init__( *args, **kwargs)
app.test_client_class = CustomClient
client = app.test_client(authentication='Basic ....')
Expand Down

0 comments on commit ccd02bf

Please sign in to comment.