try this library:

https://github.com/henriquebastos/django-test-without-migrations/



On Sat, Jul 16, 2016 at 7:20 PM, James Schneider <[email protected]>
wrote:

> >>
> >> Could you explain what you mean by running tests?
> >
> >
> > Yes. I'm talking about "manage.py test".
> >
> > The docs says:
> > "New in Django 1.8 [...]  If the database does not exist, it will first
> be created. Any migrations will also be applied in order to keep it up to
> date."
> >
> > Source:
> https://docs.djangoproject.com/en/1.9/topics/testing/overview/#the-test-database
>
> >
> >
> > I don't need automatically created test databases nor migrations
> applied. Can I disable this?
> >
>
> I don't know of a way to do so. You're probably better off using a
> separate test suite than relying on manage.py to handle the setup of the
> testing environment for you.
>
> Out of curiosity, are you not testing anything database-related? I'm not
> sure how you expect your test suite to be valid if your database is not
> initialized correctly.
>
> -James
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> 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/CA%2Be%2BciWH_QWWU1AadSup--haNKPMiJ48gB6Q-djX6zTH4xJf1g%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CA%2Be%2BciWH_QWWU1AadSup--haNKPMiJ48gB6Q-djX6zTH4xJf1g%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Fábio C. Barrionuevo da Luz
Palmas - Tocantins - Brasil - América do Sul

http://pythonclub.com.br/

Blog colaborativo sobre Python e tecnologias Relacionadas, mantido
totalmente no https://github.com/pythonclub/pythonclub.github.io .

Todos são livres para publicar. É só fazer fork, escrever sua postagem e
mandar o pull-request. Leia mais sobre como publicar em README.md e
contributing.md.
Regra básica de postagem:
"Você" acha interessante? É útil para "você"? Pode ser utilizado com Python
ou é útil para quem usa Python? Está esperando o que? Publica logo, que
estou louco para ler...

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/CAPVjvMZTF71nEK-%2B6gEs9xNF0S68EYLUc60Y8qzCrj8UoX8vVw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to