Skip to content
Myr

Pass keyword args from `test_client` method to client class constructor

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

authored by Matt Wright · committed by Markus Unterwaditzer · parent 6b3fbb3 · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:flask/app.py+2 added-2 removed
819 unmodified lines
820 # resetted normally. This makes it possible to restart the server821 # without reloader and that stuff from an interactive shell.822 self._got_first_request = False823824 def test_client(self, use_cookies=True):824 def test_client(self, use_cookies=True, **kwargs):825 """Creates a test client for this application. For information826 about unit testing head over to :ref:`testing`.827828 Note that if you are testing for assertions or exceptions in your
27 unmodified lines
856 """857 cls = self.test_client_class858 if cls is None:859 from flask.testing import FlaskClient as cls860 return cls(self, self.response_class, use_cookies=use_cookies)860 return cls(self, self.response_class, use_cookies=use_cookies, **kwargs)861862 def open_session(self, request):863 """Creates or opens a new session. Default implementation stores all864 session data in a signed cookie. This requires that the
1025 unmodified lines