From 157604a87fa7e1331c25fcbed558f0799aa5b8df Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Tue, 13 Aug 2013 20:54:57 +0100 Subject: Oracle schema backend, passes most tests and is pretty complete. --- tests/schema/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/schema/tests.py b/tests/schema/tests.py index f6e45599b8..d4e76e8567 100644 --- a/tests/schema/tests.py +++ b/tests/schema/tests.py @@ -167,7 +167,7 @@ class SchemaTests(TransactionTestCase): # Ensure the field is right to begin with columns = self.column_classes(Author) self.assertEqual(columns['name'][0], "CharField") - self.assertEqual(columns['name'][1][6], False) + self.assertEqual(bool(columns['name'][1][6]), bool(connection.features.interprets_empty_strings_as_nulls)) # Alter the name field to a TextField new_field = TextField(null=True) new_field.set_attributes_from_name("name") @@ -195,7 +195,7 @@ class SchemaTests(TransactionTestCase): # Ensure the field is right afterwards columns = self.column_classes(Author) self.assertEqual(columns['name'][0], "TextField") - self.assertEqual(columns['name'][1][6], False) + self.assertEqual(columns['name'][1][6], bool(connection.features.interprets_empty_strings_as_nulls)) def test_rename(self): """ -- cgit v1.3