Could you explain what you mean by running tests?
>>
>> 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 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/CA%2Be%2BciWH_QWWU1AadSup--haNKPMiJ48gB6Q-djX6zTH4xJf1g%40mail.gmail.com.
>
> 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.
You can use MIGRATION_MODULES for this: https://docs.djangoproject.com/en/1.9/ref/settings/#migration-modules
Also, there's a ticket to simplify disabling of migrations during tests further: https://code.djangoproject.com/ticket/25388
BTW: Would you consider bringing back patch https://github.com/django/django/commit/157d7f1f1de4705daddebb77f21bd7097a74513d ? This patch is what I've asking for months.Marcin