Bug #72746 Tests fail in Django 1.7
Submitted: 26 May 2014 7:41 Modified: 22 Jul 2014 14:39
Reporter: Markus Magnuson Email Updates:
Status: Closed Impact on me:
Category:Connector / Python Severity:S2 (Serious)
Version:1.2.1rc1 OS:Any
Assigned to: Peeyush Gupta CPU Architecture:Any

[26 May 2014 7:41] Markus Magnuson
Running any tests (i.e. `./manage.py test`) in Django 1.7 using the MySQL/Python Connector 1.2.1rc1 will fail, since the test database setting format used by the connector Django module has been deprecated in Django 1.7. For more info, see: https://docs.djangoproject.com/en/1.7/ref/settings/#test

The attached diff is a fix for this that I've been using myself to fix the failing tests, would be really nice if it could be incorporated in the main branch.

How to repeat:
1. Install the latest build of Django 1.7 (b4 at the time of writing this)
2. Install the latest version of the connector (1.2.1rc1 at the time of writing this)
3. Configure a MySQL database in `settings.py`
4. Run `./manage.py test`
[26 May 2014 7:42] Markus Magnuson
Diff for fixing failing test on Django 1.7

Attachment: tests_django17_mysql.diff (application/octet-stream, text), 1.24 KiB.

[18 Jun 2014 9:47] Geert Vanderkelen
Thanks for your bug report and patch!

Note that Django v1.7 is still in dev/beta. We can't add support it just yet, but we keep an eye on it.
[22 Jul 2014 14:23] Paul DuBois
Noted in 1.2.3 changelog.

Connector/Python is now compatible with Django 1.7.
[22 Jul 2014 14:39] Markus Magnuson

Can't see it :)
[29 Aug 2014 14:39] Paul DuBois
Also noted in 2.0.1 changelog.