Re: dump sqlite to file when testing

2010-10-22 Thread Phlip
On Oct 21, 10:54 pm, Russell Keith-Magee wrote: > On Fri, Oct 22, 2010 at 12:37 PM, Phlip wrote: > > I just tried it: > > > DATABASES = { > >    'default': { > >        'ENGINE': 'django.db.backends.sqlite3', > > #  TODO restore        'NAME': ':memory:', > >        'NAME': '/home/phlip/fun.db'

Re: dump sqlite to file when testing

2010-10-21 Thread Russell Keith-Magee
On Fri, Oct 22, 2010 at 12:37 PM, Phlip wrote: > I just tried it: > > DATABASES = { >    'default': { >        'ENGINE': 'django.db.backends.sqlite3', > #  TODO restore        'NAME': ':memory:', >        'NAME': '/home/phlip/fun.db', >        'USER': '', >        'PASSWORD': '', >        'HOST':

Re: dump sqlite to file when testing

2010-10-21 Thread Phlip
I just tried it: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', # TODO restore'NAME': ':memory:', 'NAME': '/home/phlip/fun.db', 'USER': '', 'PASSWORD': '', 'HOST': '', 'PORT': '', } } Yes that's in my test_settin

Re: dump sqlite to file when testing

2010-10-21 Thread Miguel Araujo
Thanks Russ, I couldn't find it in the documentation, IMHO I think it's a little bit hidden. Best regards, Miguel Araujo 2010/10/21 Russell Keith-Magee > On Wed, Oct 20, 2010 at 10:33 PM, Miguel Araujo > wrote: > > Hi everyone, > > Is there any way to force sqlite3 to use a file instead of RA

Re: dump sqlite to file when testing

2010-10-20 Thread Russell Keith-Magee
On Wed, Oct 20, 2010 at 10:33 PM, Miguel Araujo wrote: > Hi everyone, > Is there any way to force sqlite3 to use a file instead of RAM when running > tests? I would like to access the DB somehow to check some fields. This is > the only DB engine I have in this machine. Yes - set the TEST_NAME (or