1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fix some small errors in the tests

This commit is contained in:
Andrew Godwin
2013-08-23 12:07:43 +01:00
parent beefac8aae
commit ac45f9c9c5
4 changed files with 18 additions and 10 deletions

View File

@@ -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], bool(connection.features.interprets_empty_strings_as_nulls))
self.assertEqual(bool(columns['name'][1][6]), False)
def test_rename(self):
"""
@@ -230,7 +230,7 @@ class SchemaTests(TransactionTestCase):
# Create the tables
with connection.schema_editor() as editor:
editor.create_model(Author)
editor.create_model(Tag)
editor.create_model(TagM2MTest)
editor.create_model(BookWithM2M)
# Ensure there is now an m2m table there
columns = self.column_classes(BookWithM2M._meta.get_field_by_name("tags")[0].rel.through)