Re: Unit tests when using a User model

2017-05-02 Thread FoxMaSk
Destroying test database for alias 'default'... How do I set permissions to the user that will fit the DjangoModelPermissions requirements ?? Regards Le samedi 29 avril 2017 22:32:46 UTC+2, FoxMaSk a écrit : > > Hi, > > As I'm totally new with DRF, and just started

Unit tests when using a User model

2017-04-29 Thread FoxMaSk
Hi, As I'm totally new with DRF, and just started my first project with it, I dont see from which side I can take the code to make my unit tests. I read http://www.django-rest-framework.org/api-guide/testing/ And if I start from the beginning with - *APIRequestFactory, * - with "Cre