Please ignore this! My apologies - I read "fixtures" instead of "migrations".
On Sunday, 17 July 2016 15:13:05 UTC+2, Derek wrote:
-- On Sunday, 17 July 2016 15:13:05 UTC+2, Derek wrote:
I use a small "hack" which Works For Me :)I use a shell script to run the tests (call it, for example, `tester.sh`) :-mv myapp/fixtures myapp/_fixturespython manage.py test --traverse-namespace tests --settings=test_settingsmv myapp/_fixtures myapp/fixturesSo; basically rename the fixtures directories - run the tests - and then restore the correct names.HTH until we have an "official" patch.
On Saturday, 16 July 2016 22:45:18 UTC+2, marcin....@gmail.com wrote:Hi all.Is possible to disable migrations execution when running tests?Thanks,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+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/18c92961-26bb-4277-90d8-32062ec855f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment