mirror of https://github.com/django/django.git
Fixed a test that depended on how identifiers are quoted by the database backend and broke under MySQL. Refs #17055.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16994 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
d75337fc7b
commit
03316579f4
|
@ -864,14 +864,14 @@ class ManageAlternateSettings(AdminScriptTestCase):
|
||||||
"alternate: manage.py builtin commands work with settings provided as argument"
|
"alternate: manage.py builtin commands work with settings provided as argument"
|
||||||
args = ['sqlall','--settings=alternate_settings', 'admin_scripts']
|
args = ['sqlall','--settings=alternate_settings', 'admin_scripts']
|
||||||
out, err = self.run_manage(args)
|
out, err = self.run_manage(args)
|
||||||
self.assertOutput(out, 'CREATE TABLE "admin_scripts_article"')
|
self.assertRegexpMatches(out, 'CREATE TABLE [`"]admin_scripts_article[`"]')
|
||||||
self.assertNoOutput(err)
|
self.assertNoOutput(err)
|
||||||
|
|
||||||
def test_builtin_with_environment(self):
|
def test_builtin_with_environment(self):
|
||||||
"alternate: manage.py builtin commands work if settings are provided in the environment"
|
"alternate: manage.py builtin commands work if settings are provided in the environment"
|
||||||
args = ['sqlall','admin_scripts']
|
args = ['sqlall','admin_scripts']
|
||||||
out, err = self.run_manage(args,'alternate_settings')
|
out, err = self.run_manage(args,'alternate_settings')
|
||||||
self.assertOutput(out, 'CREATE TABLE "admin_scripts_article"')
|
self.assertRegexpMatches(out, 'CREATE TABLE [`"]admin_scripts_article[`"]')
|
||||||
self.assertNoOutput(err)
|
self.assertNoOutput(err)
|
||||||
|
|
||||||
def test_builtin_with_bad_settings(self):
|
def test_builtin_with_bad_settings(self):
|
||||||
|
|
Loading…
Reference in New Issue