On Thu, 2006-08-03 at 23:50 +0100, Bill de hÓra wrote: > Hi, > > is there any particular reason unittest isn't used in Django? > Specifically if I was writing tests for contribution/patches, would > writing them in unittest be a problem, or is there a preferred approach?
I have no clue about the historical reasons, although making documentation examples out of doctest strings is obviously easier. Since there are some things that are close to impossible to do cleanly with doctest, I would hope unittest isn't forbidden. One problem you'll have at the moment is integrating them into runtests.py -- it's a bit hairy in there and you need to add some stuff for picking up the tests and running them. Fortunately, Russell's testing patches in #2333 make this a lot easier, since he's built in unittest support. I'm reading through them this morning and they look good so far, so even that hurdle should fade away soon. Cheers, Malcolm --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
