(self)
| 905 | self.assertIn(columns["bits"][0], ("BinaryField", "TextField")) |
| 906 | |
| 907 | def test_add_field_durationfield_with_default(self): |
| 908 | with connection.schema_editor() as editor: |
| 909 | editor.create_model(Author) |
| 910 | new_field = DurationField(default=datetime.timedelta(minutes=10)) |
| 911 | new_field.set_attributes_from_name("duration") |
| 912 | with connection.schema_editor() as editor: |
| 913 | editor.add_field(Author, new_field) |
| 914 | columns = self.column_classes(Author) |
| 915 | self.assertEqual( |
| 916 | columns["duration"][0], |
| 917 | connection.features.introspected_field_types["DurationField"], |
| 918 | ) |
| 919 | |
| 920 | @unittest.skipUnless(connection.vendor == "mysql", "MySQL specific") |
| 921 | def test_add_binaryfield_mediumblob(self): |
nothing calls this directly
no test coverage detected