Re: facing issue on unit test

2019-09-08 Thread Arulselvam K
Thanks!, So for each test , do i need to add same test data? or do we have any other way not to repeat the same test data? On Tuesday, 13 August 2019 20:32:16 UTC+5:30, Vinicius Assef wrote: > > The database is cleared after each test method. > > So, in a new testcase your database is empty. > >

Re: facing issue on unit test

2019-08-13 Thread Vinicius Assef
The database is cleared after each test method. So, in a new testcase your database is empty. On Tue, 13 Aug 2019 at 00:34, Arulselvam K wrote: > Have hosted the code @ "https://github.com/tbone230590/plib"; > Here is the problem I have two models Book and IssuedBook, IssuedBook have > foreign

facing issue on unit test

2019-08-12 Thread Arulselvam K
Have hosted the code @ "https://github.com/tbone230590/plib"; Here is the problem I have two models Book and IssuedBook, IssuedBook have foreign key relation to Book object.Those models are defined @ "/api/data/models" I have unit tests for testing those models and are available @ "/api/unit_te