@@ -150,6 +150,10 @@ def django_test_expected_failures(self):
150150 'schema.tests.SchemaTests.test_text_field_with_db_index_to_fk' ,
151151 # CockroachDB doesn't support dropping the primary key.
152152 'schema.tests.SchemaTests.test_alter_int_pk_to_int_unique' ,
153+ # unimplemented: primary key dropped without subsequent addition of
154+ # new primary key in same transaction
155+ # https://github.com/cockroachdb/cockroach/issues/48026
156+ 'migrations.test_operations.OperationTests.test_composite_pk_operations' ,
153157 # CockroachDB doesn't support changing the primary key of table.
154158 # psycopg.errors.InvalidColumnReference: column "id" is referenced
155159 # by the primary key
@@ -165,6 +169,7 @@ def django_test_expected_failures(self):
165169 'many_to_one.tests.ManyToOneTests.test_get_prefetch_querysets_reverse_invalid_querysets_length' ,
166170 'migrations.test_operations.OperationTests.test_smallfield_autofield_foreignfield_growth' ,
167171 'migrations.test_operations.OperationTests.test_smallfield_bigautofield_foreignfield_growth' ,
172+ 'schema.tests.SchemaTests.test_alter_smallint_pk_to_smallautofield_pk' ,
168173 # unexpected unique index in pg_constraint query:
169174 # https://github.com/cockroachdb/cockroach/issues/61098
170175 'introspection.tests.IntrospectionTests.test_get_constraints_unique_indexes_orders' ,
@@ -193,7 +198,7 @@ def django_test_expected_failures(self):
193198 'migrations.test_operations.OperationTests.test_alter_field_reloads_state_on_fk_with_to_field_target_changes' , # noqa
194199 'migrations.test_operations.OperationTests.test_rename_field_reloads_state_on_fk_target_changes' ,
195200 # unknown signature: concat(varchar, int) (returning <string>)
196- 'migrations.test_operations.OperationTests.test_add_generate_field ' ,
201+ 'migrations.test_operations.OperationTests.test_add_generated_field ' ,
197202 # concat(): unknown signature: concat(string, int2) (desired <string>)
198203 'db_functions.text.test_concat.ConcatTests.test_concat_non_str' ,
199204 })
@@ -204,12 +209,19 @@ def django_test_expected_failures(self):
204209 'schema.tests.SchemaTests.test_alter_text_field_to_datetime_field' ,
205210 'schema.tests.SchemaTests.test_alter_text_field_to_time_field' ,
206211 })
212+ if self .is_cockroachdb_25_1 :
213+ expected_failures .update ({
214+ # expected STORED COMPUTED COLUMN expression to have type
215+ # decimal, but 'pink + pink' has type int
216+ 'migrations.test_operations.OperationTests.test_generated_field_changes_output_field' ,
217+ })
207218 if self .uses_server_side_binding :
208219 expected_failures .update ({
209220 # could not determine data type of placeholder:
210221 # https://github.com/cockroachdb/cockroach/issues/91396
211222 'backends.tests.EscapingChecks.test_parameter_escaping' ,
212223 'backends.tests.EscapingChecksDebug.test_parameter_escaping' ,
224+ 'composite_pk.test_update.CompositePKUpdateTests.test_bulk_update_comments' ,
213225 'constraints.tests.CheckConstraintTests.test_database_default' ,
214226 'expressions.tests.BasicExpressionsTests.test_annotate_values_filter' ,
215227 'expressions_case.tests.CaseDocumentationExamples.test_lookup_example' ,
0 commit comments