On Sunday, July 17, 2016 at 12:20:30 AM UTC+2, James Schneider wrote: > > > > > 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. >
I'm using databases but they aren't initialized by Django. Of course tests must be run in Django environment. Test runner should handle transactions properly (i.e. start trn and rollback after finishing every test), but it should not touch anything in db. In that scenario flushing is not necessary and may be skipped for speed up. On Sunday, July 17, 2016 at 12:24:38 AM UTC+2, Fabio Caritas Barrionuevo da Luz wrote: > > try this library: > > https://github.com/henriquebastos/django-test-without-migrations/ > Thanks. I think it should be embedded within Django and should be configurable via settings. Marcin > -- 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+unsubscr...@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/c5d8a731-85cc-417d-9e3e-a892bb7e56f5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.