On Tuesday, February 10, 2015 at 12:55:57 AM UTC-8, Avraham Serour wrote: > > you can tell django to use sqlite for tests, it will create an in memory > sqlite >
Thanks Avraham. Having a bit of trouble finding specifics on this in the documentation, but this works neatly: if 'test' in sys.argv or 'test_coverage' in sys.argv: # Covers regular testing and django-coverage DATABASES['default']['ENGINE'] = 'django.db.backends.sqlite3' DATABASES['tmi']['ENGINE'] = 'django.db.backends.sqlite3' Nice speed improvement with those in-memory dbs, too! ./s -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/71da6c8c-69ce-4a76-96b5-624be72771cd%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.