Monday, November 28, 2011

Re: django tests. where to create users

On 29/11/2011 12:12pm, Gelonida N wrote:
> So it seems, I am stuck with fixtures at least at the moment I do not
> know how to create users without fixtures such, that they would be
> persistent between unit tests.

I agree - you are stuck. Perhaps a two tier approach might work. If you
bite the bullet and completely re-load the test database for every unit
test but use an in-memory sqlite it should run fairly quickly especially
if you have a mega-swag of RAM. Then once a week, switch to PostgreSQL
and leave them running while you go and have lunch.


You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment