Sunday, October 3, 2010

Re: Mongo - testing

On Oct 4, 4:20 am, Russell Keith-Magee <russ...@keith-magee.com>
wrote:

> Well... you can call runtests; you just need to handle your own
> testing infrastructure. I haven't used MongoDB (or any other noSQL
> store) enough to be able to make any concrete suggestions, but I would
> suggest that you're going to need to either install a mock, or work
> out a scheme for creating a test database in the same way that Django
> handles the test SQL database. Django's test framework provides the
> hooks to do this if you can work out what you need to do.
>
Thanks Russell, for your comments. I have joined the developers list.

Is there any advantage/reason for creating/dropping test database when
we run manage.py? The solution I had proposed doesn't attempt this
and instead relies on the user to make sure the test database is
accessible.

Also, can you please give a url or some pointers to the hooks provided
by Django to create test database?

Thanks.

--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment