Russell,

 RK> On 7/27/07, Andrey Khavryuchenko <[EMAIL PROTECTED]> wrote:
 >> 
 >> Then I've paused and wrote DbMock class for django that uses some black
 >> magic to steal django db connection and substitute it with temporary sqlite
 >> in-memory db.

 RK> How is this different to the default Django behavior if you specify
 RK> SQLite as your database? Can't you get exactly the same behavior by
 RK> creating a test_settings.py file that contains:

 RK> from settings import *
 RK> DATABASE_BACKEND='sqlite'

 RK> and then run:

 RK> ./manage.py --settings=test_settings test

 RK> ?

Just replied on django-developers: I need database mock to speedup tests.
Mocking them into in-memory sqlite was the simplest way to reach this w/o
losing flexibility.

-- 
Andrey V Khavryuchenko            
Django NewGate -  http://www.kds.com.ua/djiggit/
Development - http://www.kds.com.ua 
Call akhavr1975 on www.gizmoproject.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to