mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-05-10 02:43:41 +03:00
Update docs/api-guide/testing.md
This commit is contained in:
parent
fab9b80738
commit
c76b1ab841
|
@ -102,7 +102,7 @@ This means that setting attributes directly on the request object may not always
|
|||
request.user = user
|
||||
response = view(request)
|
||||
|
||||
In case you want to test the request having a REST famework's `Request` you have to transform it by-hand before:
|
||||
If you want to test a request involving the REST framework’s 'Request' object, you’ll need to manually transform it first:
|
||||
|
||||
class DummyView(APIView):
|
||||
...
|
||||
|
|
Loading…
Reference in New Issue
Block a user