Commits

Andrew Godwin committed a4b2ea9

Add unit test for problem fixed in other branch.

  • Participants
  • Parent commits dc41fe9

Comments (0)

Files changed (1)

File south/tests/db.py

         finally:
             db.rollback_transaction()
     
+    def test_text_default(self):
+        """
+        MySQL cannot have blank defaults on TEXT columns.
+        """
+        db.start_transaction()
+        try:
+            db.create_table("test_textdef", [
+                ('textcol', models.TextField(blank=True)),
+            ])
+        finally:
+            db.rollback_transaction()
+    
     def test_add_unique_fk(self):
         """
         Test adding a ForeignKey with unique=True or a OneToOneField