#6517: MySQL: manage.py dbshell does not get charset from DATABASES setting
-------------------------------------+-------------------------------------
Reporter: Tom Vergote | Owner: Manav
| Agarwal
Type: Bug | Status: assigned
Component: Database layer | Version: master
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Manav Agarwal):
{{{
def test_charset_configured(self):
self.assertEqual(
['mysql', '--user=someuser', '--password=somepassword',
'--host=somehost', '--port=444', 'default-character-
set=utf8', 'somedbname'],
self.get_command_line_arguments({
'NAME': 'somedbname',
'USER': 'someuser',
'PASSWORD': 'somepassword',
'HOST': 'somehost',
'PORT': 444,
'DEFAULT-CHARACTER-SET' : 'utf8',
}))
}}}
Adding above mentioned function in {{{MySqlDbshellCommandTestCase}}} class
of{{{ tests/dbshell/test_mysql.py }}}would be a good test?
Please review the same so that i may create a PR
--
Ticket URL: <https://code.djangoproject.com/ticket/6517#comment:14>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/062.8f7a8b70e21f762065ed4d97836e4925%40djangoproject.com.