On Thu, Sep 24, 2009 at 9:11 PM, Jonathan Lange <jml@xxxxxxxxx> wrote: > On Thu, Sep 24, 2009 at 7:07 PM, Leonard Richardson > <leonard.richardson@xxxxxxxxxxxxx> wrote: >> On Thu, 2009-09-24 at 10:50 +0100, Jonathan Lange wrote: >>> Hello Launchpad Users, >>> >>> I've started to write things that use launchpadlib that are more than >>> just throw-away scripts. I want to build these apps with test-driven >>> development, which is my preferred way of writing serious code. >>> >>> It turns out that it's really quite tricky. I've ended up making fake >>> Bug objects and fake Person objects and all sorts of yuck. Has anyone >>> done TDD with launchpadlib? What was your approach? >> >> Can you share the tests you wrote, with the fake Bug objects etc.? >> > > https://code.edge.launchpad.net/~jml/launchpad/auto-land/+merge/12308 > This branch has, of course, landed now. As you can see, the fake Bug objects are extremely simple. They only exist to provide fodder for functions that manipulate them. jml
This is the launchpad-users mailing list archive — see also the general help for Launchpad.net mailing lists.
(Formatted by MHonArc.)