Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Allow custom TestClient #148

Closed
danjac opened this Issue · 2 comments

2 participants

@danjac
Collaborator

It would be useful to make the test client class an overridable property (as is currently the case with response_class).

It would then be possible to insert a custom TestClient class with additional methods (for example, a "login" method) in unit tests.

For example:

app.test_client_class = MyCustomClient
client = app.test_client() 
@mitsuhiko
Owner

Added the ability to override the test client's class. This closed by 4b65c7e

@danjac
Collaborator

Perfect, thanks.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.