diff options
| author | Andrew Godwin <andrew@aeracode.org> | 2013-08-13 20:54:57 +0100 |
|---|---|---|
| committer | Andrew Godwin <andrew@aeracode.org> | 2013-08-13 20:54:57 +0100 |
| commit | 157604a87fa7e1331c25fcbed558f0799aa5b8df (patch) | |
| tree | e379b3b5395f2b804035bc168663e6575b97842f /tests | |
| parent | 44f907dd980defaab2c06b4ead2255ec3566bcd5 (diff) | |
Oracle schema backend, passes most tests and is pretty complete.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/schema/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
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): """ |
