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
 
Robert Myers  
View profile  
 More options Oct 26 2009, 3:04 pm
From: Robert Myers <myer0...@gmail.com>
Date: Mon, 26 Oct 2009 12:04:34 -0700 (PDT)
Local: Mon, Oct 26 2009 3:04 pm
Subject: Django Test Plugin
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, 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. 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.

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.