Sorry for spamming, wasn't sure if I should combine this in my last
post...

Along the lines of testing code I wrote at work that I'd like to clean
up and release...

At work we frequently don't use fixtures, but instead instantiate the
appopriate data at the start of each self.test_X function so that you
can glance at one test and see exactly the data conditions it's
expecting to test. We've got some handy convenience functions that
essentially allow you to say self.create_object(klass,
dict(change_this_key="new value")) and have them automatically deleted
at the end of the test, similar to fixtures.

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

Thanks,

Chris H.


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