Skipped SchemaTests.test_alter_field_type_and_db_collation on databases that don't support collation on TextField.

This commit is contained in:
Mariusz Felisiak 2022-04-06 16:52:13 +02:00 committed by GitHub
parent 65effbdb10
commit bfe9665502
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -4579,7 +4579,9 @@ class SchemaTests(TransactionTestCase):
editor.alter_field(Author, new_field, old_field, strict=True) editor.alter_field(Author, new_field, old_field, strict=True)
self.assertIsNone(self.get_column_collation(Author._meta.db_table, "name")) self.assertIsNone(self.get_column_collation(Author._meta.db_table, "name"))
@skipUnlessDBFeature("supports_collation_on_charfield") @skipUnlessDBFeature(
"supports_collation_on_charfield", "supports_collation_on_textfield"
)
def test_alter_field_type_and_db_collation(self): def test_alter_field_type_and_db_collation(self):
collation = connection.features.test_collations.get("non_default") collation = connection.features.test_collations.get("non_default")
if not collation: if not collation: