Friday, June 1, 2018

Re: Call to method that takes in a request

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.

 

--

Melvyn Sopacua

No comments:

Post a Comment