Re: Unit testing views.

2009-07-11 Thread J. Clifford Dyer
Woot! Thank you. I'll be pestering my sysadmins about that starting with our Tuesday meeting this week. :) Cheers, Cliff On Sat, 2009-07-11 at 22:32 +0800, Russell Keith-Magee wrote: > On Fri, Jul 10, 2009 at 1:02 PM, J. Clifford Dyer > wrote: > > > > On Fri, 2009-07-10 at 07:58 +0800, Russe

Re: Unit testing views.

2009-07-11 Thread Russell Keith-Magee
On Fri, Jul 10, 2009 at 1:02 PM, J. Clifford Dyer wrote: > > On Fri, 2009-07-10 at 07:58 +0800, Russell Keith-Magee wrote: >> On Fri, Jul 10, 2009 at 3:23 AM, J. Cliff Dyer wrote: >> > > I am using the django testcase, but without fixtures, because loading > fixtures is busted when you use a m2m r

Re: Unit testing views.

2009-07-09 Thread J. Clifford Dyer
On Fri, 2009-07-10 at 07:58 +0800, Russell Keith-Magee wrote: > On Fri, Jul 10, 2009 at 3:23 AM, J. Cliff Dyer wrote: > > > > I'm trying to get my django site under tests. I've started testing my > > pages using Client('url/to/my/page'), but I noticed that each test takes > > about a second to ru

Re: Unit testing views.

2009-07-09 Thread Russell Keith-Magee
On Fri, Jul 10, 2009 at 3:23 AM, J. Cliff Dyer wrote: > > I'm trying to get my django site under tests.  I've started testing my > pages using Client('url/to/my/page'), but I noticed that each test takes > about a second to run (just to get a response code for the page--very > basic tests). Are y

Unit testing views.

2009-07-09 Thread J. Cliff Dyer
I'm trying to get my django site under tests. I've started testing my pages using Client('url/to/my/page'), but I noticed that each test takes about a second to run (just to get a response code for the page--very basic tests). First of all, it seems like the client go through all the usual app

Re: Idea on unit testing views...

2006-08-09 Thread Malcolm Tredinnick
On Wed, 2006-08-09 at 14:54 -0700, Eric Walstad wrote: > On Wednesday 09 August 2006 13:46, Doug Van Horn wrote: > > I've been kicking around Django for a few months now and the one thing > > I've been trying to figure out is how to unit test my code. > ... > > I'm > > struggling with how to te

Re: Idea on unit testing views...

2006-08-09 Thread Russell Keith-Magee
On 8/10/06, Doug Van Horn <[EMAIL PROTECTED]> wrote: So, what I'd like to do is come up with a way to test that code.  Myidea is as follows:Hi Doug,We are currently working on a testing framework for Django - it is a work in progress; in particular, there is still work to be done in setting up fixt

Re: Idea on unit testing views...

2006-08-09 Thread Eric Walstad
On Wednesday 09 August 2006 13:46, Doug Van Horn wrote: > I've been kicking around Django for a few months now and the one thing > I've been trying to figure out is how to unit test my code. ... > I'm > struggling with how to test the views. More to the point, I'm > wondering if testing views

Idea on unit testing views...

2006-08-09 Thread Doug Van Horn
I've been kicking around Django for a few months now and the one thing I've been trying to figure out is how to unit test my code. I understand how to go about testing the models (non-django provided functionality) and any other 'domain' objects I may have, but I'm struggling with how to test the