fix deprecation message

This commit is contained in:
Suby Raman
2017-02-14 15:16:58 -05:00
parent 3b68dc72e7
commit d5633b3705
2 changed files with 3 additions and 3 deletions

View File

@@ -7,8 +7,8 @@ def sanic_endpoint_test(app, method='get', uri='/', gather_request=True,
*request_args, **request_kwargs):
warnings.warn(
"Use of sanic_endpoint_test will be deprecated in"
"version 1.0. Please use the `test_client` available"
"on the app object.", DeprecationWarning)
"the next major version after 0.4.0. Please use the `test_client` "
"available on the app object.", DeprecationWarning)
test_client = TestClient(app)
return test_client._sanic_endpoint_test(