Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Tweaked admin_scripts tests enhanced in r16964 a bit more so they don…

…'t fail with Oracle.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16999 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit d48510cc6b772048454f62d0b7caa11a75e60d79 1 parent 313fab8
Ramiro Morales authored October 17, 2011
6  tests/regressiontests/admin_scripts/tests.py
@@ -864,14 +864,16 @@ def test_builtin_with_settings(self):
864 864
         "alternate: manage.py builtin commands work with settings provided as argument"
865 865
         args = ['sqlall','--settings=alternate_settings', 'admin_scripts']
866 866
         out, err = self.run_manage(args)
867  
-        self.assertRegexpMatches(out,  'CREATE TABLE [`"]admin_scripts_article[`"]')
  867
+        expected_query_re = re.compile('CREATE TABLE [`"]admin_scripts_article[`"]', re.IGNORECASE)
  868
+        self.assertRegexpMatches(out, expected_query_re)
868 869
         self.assertNoOutput(err)
869 870
 
870 871
     def test_builtin_with_environment(self):
871 872
         "alternate: manage.py builtin commands work if settings are provided in the environment"
872 873
         args = ['sqlall','admin_scripts']
873 874
         out, err = self.run_manage(args,'alternate_settings')
874  
-        self.assertRegexpMatches(out,  'CREATE TABLE [`"]admin_scripts_article[`"]')
  875
+        expected_query_re = re.compile('CREATE TABLE [`"]admin_scripts_article[`"]', re.IGNORECASE)
  876
+        self.assertRegexpMatches(out, expected_query_re)
875 877
         self.assertNoOutput(err)
876 878
 
877 879
     def test_builtin_with_bad_settings(self):

0 notes on commit d48510c

Please sign in to comment.
Something went wrong with that request. Please try again.