Re: Testing with complex database setups

2013-05-26 Thread Jani Tiainen
Bummer... I whish I could have gotten away with Django test framework but it seems that custom testrunner would be the way. Have to check my options really. On Fri, 24 May 2013 03:23:44 -0700 (PDT) akaariai wrote: > On 23 touko, 15:09, Jani Tiainen wrote: > > Hi, > > > > I've product that uses

Re: Testing with complex database setups

2013-05-24 Thread akaariai
On 23 touko, 15:09, Jani Tiainen wrote: > Hi, > > I've product that uses complex setup scripts - tens of SQL scripts that > creates tables, views, complex triggers, grants permissions and such and > finally populates database with some pre-data. > > So how I should proceed with unit testing with

Re: Testing with complex database setups

2013-05-23 Thread Drew Ferguson
Hi If I understand you correctly, you want to be able to initialise your database to a known state; https://docs.djangoproject.com/en/1.5/howto/initial-data/ is what you want I think - it also contains a link to this https://docs.djangoproject.com/en/1.5/topics/testing/overview/#topics-testing-

Testing with complex database setups

2013-05-23 Thread Jani Tiainen
Hi, I've product that uses complex setup scripts - tens of SQL scripts that creates tables, views, complex triggers, grants permissions and such and finally populates database with some pre-data. So how I should proceed with unit testing with database like that, since some operations rely heav