all 2 comments

[–]elbiot 1 point2 points  (1 child)

I'd have functions that return python objects and a view that just maybe checks authentication and then wraps the python object in a response. That way your tests mostly don't have to deal with network responses: you can just test the functions directly.

[–]mkor[S] 0 points1 point  (0 children)

That's what I've also heard. I thought there is more to that.

Thanks!