On vrijdag 1 juni 2018 13:02:54 CEST Yufenyuy Veyeh Didier wrote:

> I wish to know  how I can call a method that takes in a request as one of
> its parameters such as
> 
> def get(self, request, pk):
> 
> #I am writing a test method to test the above method too.

If you want to test a view, use the TestClient[1].

-- 
Melvyn Sopacua

--------
[1] https://docs.djangoproject.com/en/2.0/topics/testing/tools/#the-test-client

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6045502.LxK3jo6LkC%40fritzbook.
For more options, visit https://groups.google.com/d/optout.

Reply via email to