Wednesday, November 30, 2011

Re: django tests. where to create users

On 11/29/2011 11:45 AM, Tom Christie wrote:
> What's wrong with just creating them in the .setUp()?
> Don't sweat the small amount of time it'll take to re-create the users
> on each test run, it's almost certainly not worth worrying about.

Well this is what I'm doing at the moment.
And I think you're right for this case:
Creating users will not be where a considerable amnount of time is

I'm just learning to use Django-testing / unit tests and as I could
imagine other setup activities which would consume more time
for setup I wanted to see whether there are ways to do some
programatical setup of 'fixtures' before the first test is run.

Basically I'd like to be sure I know my tools.

You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment