Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Django Test Plugin
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
André  
View profile  
 More options Oct 26 2009, 3:33 pm
From: André <andre.robe...@gmail.com>
Date: Mon, 26 Oct 2009 12:33:17 -0700 (PDT)
Local: Mon, Oct 26 2009 3:33 pm
Subject: Re: Django Test Plugin

On 26 Oct, 16:04, Robert Myers <myer0...@gmail.com> wrote:

> Hello Everyone,

> Thought I would share this in case anyone else would like to try it
> out. I'm currently working on a Tutorial that will be used to train
> developers at the University of Texas. Everyone loves crunchy over
> here,

Nice to hear. :-)

> as we have little funds to train people but 100's of new Python/
> Django trainees. I wrote a vlam plug-in to work with Django's built-in
> test framework. It is still a little quirky since crunchy has no way
> to reload code (that I could find) so if you change a external module
> crunchy will need to be restarted.

Yes, I have noted this before
http://code.google.com/p/crunchy/issues/detail?id=172
but, since there was little demand for it (this was just an idea I
had), I have not done any work on it.  I have made a mental note to
increase the priority of working on this.

> I have a hacky work around right
> now, but it still requires a page refresh, not terribly bad. If you
> are interested in trying it out I've posted it here:

> http://pastebin.com/f3dbba3fb

> The basic usage is:

>    <pre title="djangotest settings=blah.settings">

>     class DjangoTester(TestCase):
>         fixtures = ['fixture_file.json']

>         def testBlah(self):
>             response = self.client.post('/my/form/', data={'data':
> 'for post'})
>             self.assertRedirects(response, '/my/success/page/')

>     </pre>

> Where 'blah.settings' is a django settings module somewhere on the
> python path. I'm currently having people write an app with the correct
> name and place it on their path. If they do it right the djangotest
> will import the settings file and run the tests against it.

This looks like a very useful addition to Crunchy.  I have not worked
with Django myself, other than a small sample app just to see what it
was about.  I wonder if it would also be useful to have with Google
App Engine...

Crunchy development tends to slow down to a very painful crawl (if not
worse) during the typical "Academic year", usually with an exception
around the Xmas holidays - as I am pretty much the only continuing
developer.  I will try to incorporate your code as the first
opportunity.

Cheers,

André (Roberge)

> Robert Myers


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.