From 73c13fa63cb4ac765b8d7f7fea0dc485d93c798b Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 19 Sep 2024 10:13:12 -0400 Subject: [PATCH 1/2] add new schema skips and remove a test fixed on the Django fork --- django_mongodb/features.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/django_mongodb/features.py b/django_mongodb/features.py index ce3ea29eb..5806dd16e 100644 --- a/django_mongodb/features.py +++ b/django_mongodb/features.py @@ -85,6 +85,9 @@ class DatabaseFeatures(BaseDatabaseFeatures): "backends.tests.ThreadTests.test_pass_connection_between_threads", "backends.tests.ThreadTests.test_closing_non_shared_connections", "backends.tests.ThreadTests.test_default_connection_thread_local", + # AddField + "schema.tests.SchemaTests.test_add_indexed_charfield", + "schema.tests.SchemaTests.test_add_unique_charfield", # Add/RemoveIndex "migrations.test_operations.OperationTests.test_add_index", "migrations.test_operations.OperationTests.test_alter_field_with_index", @@ -109,8 +112,8 @@ class DatabaseFeatures(BaseDatabaseFeatures): "schema.tests.SchemaTests.test_alter_not_unique_field_to_primary_key", "schema.tests.SchemaTests.test_alter_null_to_not_null", "schema.tests.SchemaTests.test_alter_primary_key_the_same_name", - "schema.tests.SchemaTests.test_autofield_to_o2o", # AlterField (db_index) + "schema.tests.SchemaTests.test_alter_renames_index", "schema.tests.SchemaTests.test_indexes", "schema.tests.SchemaTests.test_remove_constraints_capital_letters", "schema.tests.SchemaTests.test_remove_db_index_doesnt_remove_custom_indexes", From 0b6898925acaa9a9d7b3adb4e88d5556e5f493eb Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 19 Sep 2024 10:15:52 -0400 Subject: [PATCH 2/2] reclassify some schema expected failures --- django_mongodb/features.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django_mongodb/features.py b/django_mongodb/features.py index 5806dd16e..d0e6aac45 100644 --- a/django_mongodb/features.py +++ b/django_mongodb/features.py @@ -111,11 +111,9 @@ class DatabaseFeatures(BaseDatabaseFeatures): "schema.tests.SchemaTests.test_alter_int_pk_to_int_unique", "schema.tests.SchemaTests.test_alter_not_unique_field_to_primary_key", "schema.tests.SchemaTests.test_alter_null_to_not_null", - "schema.tests.SchemaTests.test_alter_primary_key_the_same_name", # AlterField (db_index) "schema.tests.SchemaTests.test_alter_renames_index", "schema.tests.SchemaTests.test_indexes", - "schema.tests.SchemaTests.test_remove_constraints_capital_letters", "schema.tests.SchemaTests.test_remove_db_index_doesnt_remove_custom_indexes", # AlterField (unique) "schema.tests.SchemaTests.test_unique", @@ -547,6 +545,7 @@ def django_test_expected_failures(self): "model_fields.test_jsonfield.TestQuerying.test_nested_key_transform_raw_expression", "queries.tests.Queries1Tests.test_order_by_rawsql", "schema.test_logging.SchemaLoggerTests.test_extra_args", + "schema.tests.SchemaTests.test_remove_constraints_capital_letters", "timezones.tests.LegacyDatabaseTests.test_cursor_execute_accepts_naive_datetime", "timezones.tests.LegacyDatabaseTests.test_cursor_execute_returns_naive_datetime", "timezones.tests.LegacyDatabaseTests.test_raw_sql", @@ -631,6 +630,7 @@ def django_test_expected_failures(self): "introspection.tests.IntrospectionTests.test_get_primary_key_column", }, "MongoDB can't introspect primary key.": { + "schema.tests.SchemaTests.test_alter_primary_key_the_same_name", "schema.tests.SchemaTests.test_primary_key", }, "Known issue querying JSONField.": {