Re: djngo unittest to use "real" database.

2020-09-06 Thread Mike Dewhirst
On 7/09/2020 3:27 pm, django-newbie wrote: > Hi All, > > I am currently writing test cases for views, Which eventually uses > database also. > By default a test database is being created and removed after test are > run. A refreshed database is most likely what you want for testing. There are ways

djngo unittest to use "real" database.

2020-09-06 Thread django-newbie
Hi All, I am currently writing test cases for views, Which eventually uses database also. By default a test database is being created and removed after test are run. As the database itself is development database, I don't want my test to create a separate db but use exciting only. Also I will l