On 8/29/07, Chris H. <[EMAIL PROTECTED]> wrote:
>
> Sorry for spamming, wasn't sure if I should combine this in my last
> post...

Two messages with well considered content isn't spam - its the right
approach. One idea per thread.

> I've been meaning to clean up the code and release it or supply it as
> a patch on a ticket, but I wasn't sure what the opinion of folks was
> on fixtures vs. setting up objects on the fly. If we don't want to
> encourage that behavior I can keep my code safely tucked away (and
> ugly) :-)

Fixtures work for many cases, but sometimes your test cases will
require that you create objects on the fly. The proposal to add
programmable syntax to the fixtures framework has been made a few
times, and our response has been to say 'just put the relevant code in
your setup method'.

This leaves some users dissatisfied due to the apparently onerous
overhead of writing code to create object instances (I don't entirely
understand this position, but that's just me). If you've got some
magic framework that can help with building 'dynamic fixtures', we'd
love to see it.

Yours,
Russ Magee %-)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to