Fixed #18317 -- Removed db specific raw SQL function from tests

A test in model_fields used LEN() in raw SQL. This function is not
available on some 3rd party backends. I removed this function and
ensured that the test works correctly (breaks pre e9bbdb39de) with
the change.
This commit is contained in:
Anssi Kääriäinen 2012-05-22 23:01:24 +03:00
parent df7a65ac4b
commit 459c3b67b7
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ class BooleanFieldTests(unittest.TestCase):
# Verify that when an extra clause exists, the boolean
# conversions are applied with an offset
b5 = BooleanModel.objects.all().extra(
select={'string_length': 'LENGTH(string)'})[0]
select={'string_col': 'string'})[0]
self.assertFalse(isinstance(b5.pk, bool))
class ChoicesTests(test.TestCase):