Re: Feature proposal: Test client form value extraction

2009-08-31 Thread Joshua Russo
On Fri, Aug 28, 2009 at 4:37 PM, Joshua Russo wrote: > On Fri, Aug 28, 2009 at 4:11 PM, Joshua Russo wrote: > >> On Thu, Aug 27, 2009 at 10:39 PM, Forest Bond > > wrote: >> >>> Hi, >>> >>> On Thu, Aug 27, 2009 at

Re: Feature proposal: Test client form value extraction

2009-08-28 Thread Joshua Russo
On Thu, Aug 27, 2009 at 10:39 PM, Forest Bond wrote: > Hi, > > On Thu, Aug 27, 2009 at 07:42:24PM -0100, Joshua Russo wrote: > > On Thu, Aug 27, 2009 at 6:22 PM, Forest Bond > > > wrote: > > > > Hi, > > > > On Thu, Aug 27, 2009 at

Re: Feature proposal: Test client form value extraction

2009-08-27 Thread Forest Bond
Hi, On Thu, Aug 27, 2009 at 07:42:24PM -0100, Joshua Russo wrote: > On Thu, Aug 27, 2009 at 6:22 PM, Forest Bond > wrote: > > Hi, > > On Thu, Aug 27, 2009 at 03:28:03PM -0100, Joshua Russo wrote: > > On Thu, Aug 27, 2009 at 11:54 AM, Joshua Russo

Re: Feature proposal: Test client form value extraction

2009-08-27 Thread Joshua Russo
On Thu, Aug 27, 2009 at 6:22 PM, Forest Bond wrote: > Hi, > > On Thu, Aug 27, 2009 at 03:28:03PM -0100, Joshua Russo wrote: > > On Thu, Aug 27, 2009 at 11:54 AM, Joshua Russo > wrote: > > Ok, so I found that the way I was 'casting' the response

Re: Feature proposal: Test client form value extraction

2009-08-27 Thread Forest Bond
Hi, On Thu, Aug 27, 2009 at 03:28:03PM -0100, Joshua Russo wrote: > On Thu, Aug 27, 2009 at 11:54 AM, Joshua Russo wrote: > Ok, so I found that the way I was 'casting' the response object didn't work. > Is > there no way to cast an instance of a base class to a child

Re: Feature proposal: Test client form value extraction

2009-08-27 Thread Joshua Russo
On Thu, Aug 27, 2009 at 11:54 AM, Joshua Russo wrote: > On Wed, Aug 26, 2009 at 1:34 PM, Joshua Russo wrote: > >> On Wed, Aug 26, 2009 at 12:52 PM, Russell Keith-Magee < >> freakboy3...@gmail.com> wrote: >> >>> >>> On Wed, Aug 26, 2009 at 4:41 PM,

Re: Feature proposal: Test client form value extraction

2009-08-27 Thread Joshua Russo
On Wed, Aug 26, 2009 at 1:34 PM, Joshua Russo wrote: > On Wed, Aug 26, 2009 at 12:52 PM, Russell Keith-Magee < > freakboy3...@gmail.com> wrote: > >> >> On Wed, Aug 26, 2009 at 4:41 PM, Joshua Russo >> wrote: >> > I figured someone had done this at

Re: Feature proposal: Test client form value extraction

2009-08-26 Thread Joshua Russo
On Wed, Aug 26, 2009 at 12:52 PM, Russell Keith-Magee < freakboy3...@gmail.com> wrote: > > On Wed, Aug 26, 2009 at 4:41 PM, Joshua Russo > wrote: > > I figured someone had done this at some time. > > What's the general consensus on when some thing like this should > > be

Re: Feature proposal: Test client form value extraction

2009-08-26 Thread Russell Keith-Magee
On Wed, Aug 26, 2009 at 4:41 PM, Joshua Russo wrote: > I figured someone had done this at some time. > What's the general consensus on when some thing like this should > be considered to be added to the project and when it should just stay as an > outside utility? It's

Re: Feature proposal: Test client form value extraction

2009-08-26 Thread Joshua Russo
I figured someone had done this at some time. What's the general consensus on when some thing like this should be considered to be added to the project and when it should just stay as an outside utility? On Wed, Aug 26, 2009 at 7:11 AM, Thomas Guettler wrote: > > Hi, > >

Re: Feature proposal: Test client form value extraction

2009-08-26 Thread Thomas Guettler
Hi, some time ago I wrote a snippet which does this: http://www.djangosnippets.org/snippets/467/ {{{ If you want to test a post request to a form, you need to give all input fields, even if you just want to test if one value gets changed. This snippets parses the HTML of a view and gives you

Re: Feature proposal: Test client form value extraction

2009-08-25 Thread Joshua Russo
On Aug 25, 6:09 pm, Joshua Russo wrote: > I've just put together an enhancement of the test Client used in unit > testing. I added the parsing of the content to extract the form fields with > their initial values as a dictionary, so you can just change a few values > and

Feature proposal: Test client form value extraction

2009-08-25 Thread Joshua Russo
I've just put together an enhancement of the test Client used in unit testing. I added the parsing of the content to extract the form fields with their initial values as a dictionary, so you can just change a few values and throw it back at the server. http://dpaste.com/hold/85281/ I had to do a