Friday, November 25, 2011

django testing with postgres without permissions to create databases

It seems I'm not the first one who wans to run django tests with
postgressql and who doesn't have permissions to create databases.

I found two suggestions on the web:

One is to use sqlite for testing instead of postgres.
However I'm not really happy with this solution, as sqlite is less
sensitive to sloppyness in the code. I encountered already some issues
only with postgres, but not with sqlite.

The other suggestion, that I found is implementing a custom test runner,
that adapts setup_databases()

I'll probably try that approach, but was curious about other potential
tricks.

--
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