do you have large initial_data fixtures ?

tables get flushed and initial_data is added each time.

     felix :    crucial-systems.com



On Wed, Feb 11, 2009 at 1:50 PM, Andrea Reginato
<[email protected]>wrote:

>
> Hei guys, I've a question related to some tests I've make.
>
> When I run them they need lot of time to be executed. I'm talking
> about 10 seconds for single test. They are functional test such as the
> one you can see above (normal functional tests).
>
>    def setUp(self):
>        self.c = Client()
>
>    # Basics
>    def testLogin(self):
>        response = self.c.post('/accounts/login/', {'username':
> TEST_USER, 'password': TEST_PASSWORD})
>        self.assertEquals(response.status_code, 302)
>
> They are too slow, and in this way, I can't really test what I want
> because I loose a lot of time. This is my first experience, and I come
> from Rails development, where tests are executed really fast if
> compared to my first Django project.
>
> The only thing that make me think is that in the pages that I render
> the images are not locals, but are into S3, but I don't know if this
> can be the trouble. If somebody has any idea, or any way to check the
> steps I'm following I would be really grateful.
>
> Thnaks
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to