Tuesday, April 25, 2017

Re: Why my tests need to run migrate before??

Thanks for the response.
The problem was about some non-lazy queries in views.

El diumenge, 2 abril de 2017 16:51:59 UTC+2, ludovic coues va escriure:
My first guess would be that test happen on a fresh database and
migrate is how django build its database

2017-04-02 11:34 GMT+02:00 XaviP <pezb...@gmail.com>:
> Hi django users,
>
> I'm trying to understand if it's a standard behavior the need to run migrate
> before tests, in a fresh installation of an app or project with django 1.10
>
> Thanks!
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users...@googlegroups.com.
> To post to this group, send email to django...@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/c7a467bb-046d-4692-81bb-9ce6acce96b2%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--

Cordialement, Coues Ludovic
+336 148 743 42

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f54acded-d352-4b49-8e86-e477945154e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment