From d5633b3705e821bf3adae87d895d413e01b20f52 Mon Sep 17 00:00:00 2001 From: Suby Raman Date: Tue, 14 Feb 2017 15:16:58 -0500 Subject: [PATCH] fix deprecation message --- docs/sanic/testing.md | 2 +- sanic/utils.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/sanic/testing.md b/docs/sanic/testing.md index 689d78f9..2012203d 100644 --- a/docs/sanic/testing.md +++ b/docs/sanic/testing.md @@ -62,7 +62,7 @@ the available arguments to aiohttp can be found ### Deprecated: `sanic_endpoint_test` -Prior to version 0.3.2, testing was provided through the `sanic_endpoint_test` method. This method will be deprecated in version 1.0; please use the `test_client` instead. +Prior to version 0.3.2, testing was provided through the `sanic_endpoint_test` method. This method will be deprecated in the next major version after 0.4.0; please use the `test_client` instead. ``` from sanic.utils import sanic_endpoint_test diff --git a/sanic/utils.py b/sanic/utils.py index a843bd69..0aa4b33c 100644 --- a/sanic/utils.py +++ b/sanic/utils.py @@ -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(