If you're having issues with specific environments and configuring all of the dependencies, you can try using https://github.com/django/django-box which is a Vagrant virtual machine running on Virtualbox. It has postgres, mysql, sqlite, and all of the pythons Django uses for testing. You could also just take a look at the settings files it uses for testing: https://github.com/django/django-box/tree/master/roles/djangodata/files
On Saturday, 11 March 2017 09:03:51 UTC+11, Anton Samarchyan wrote: > > I have a pull request in which some tests for some of environments are > failing. (it's fine for the default tests with sqlite and some others) - > https://github.com/django/django/pull/7994 > > Now, I am trying to run the tests with the database set to mysql. > > I added a file settings_mysql.py which I put in the tests folder: > http://pastebin.com/113Xx2Am > > To try it out I use the master branch (commit > c577d8a4981233b4d0f65c6ce57ae33d304095b9). > > Then I run ./runtests.py --settings settings_mysql and I am getting errors. > > Then I rerun it with parallel=1 - ./runtests.py --settings settings_mysql > --parallel=1 > > and I get the following result: > > FAILED (failures=56, errors=42, skipped=1046, expected failures=4) > > Full log - https://paste.ee/p/Tfc9H > > Does anyone have an idea what might be wrong and what is the best way to > run tests for different databases? > -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" 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-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/78cfa185-0443-4d78-a059-f3c016209d71%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
