From 2983f1c53a3ae686bae99cd72832ad3d7aa33031 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=87a=C4=9F=C4=B1l?= Date: Wed, 25 Apr 2018 19:02:44 +0100 Subject: [PATCH] update testing.md - missing import import for RequestsClient is missing in the docs --- docs/api-guide/testing.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/api-guide/testing.md b/docs/api-guide/testing.md index b31d2c972..47d6887c7 100644 --- a/docs/api-guide/testing.md +++ b/docs/api-guide/testing.md @@ -201,6 +201,7 @@ live environment. (See "Live tests" below.) This exposes exactly the same interface as if you were using a requests session directly. + from rest_framework.test import RequestsClient client = RequestsClient() response = client.get('http://testserver/users/') assert response.status_code == 200