On 4.06.2009 19:46, Karen Tracey wrote:
> Well the problems the test reveal with the in-memory Journal instance
> having a stale lastnum after documents are deleted is a bit of a gotcha
> with they way you have set this up.  Though it's easily fixed in the
> test, I fear actual code that uses these models would easily run afoul
> of the same problem.

Thanks, Karen, for your explanations. Now I understood the problem. Yes,
the other errors produced by this example were of course due to the same
mistake.

But what can I do to avoid this gotcha? Is there a better way to set
this up?

> And I don't see why you are focused on adding tests for these models to
> Django itself.  Tests for your app's models belong with your app, not in
> the Django test suite.

I thought that this simplified case has some didactic value... but you
are right, I won't insist on having them added to Django.

Luc

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

Reply via email to