Skip to content

Commit 215ae30

Browse files
committed
add remaining migrations tests to CI
1 parent 41598ec commit 215ae30

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed

.github/workflows/test-python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
many_to_many
101101
many_to_one
102102
many_to_one_null
103-
migrations.test_operations
103+
migrations
104104
model_fields
105105
model_forms
106106
mutually_referential

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ from the new application's `apps.py` file.
149149
- You can study the skipped tests in `DatabaseFeatures.django_test_skips` for
150150
more details on known issues.
151151

152+
- Due to the lack of ability to introspect MongoDB collection schema,
153+
`migrate --fake-initial` isn't supported.
154+
152155
## Troubleshooting
153156

154157
TODO

django_mongodb/features.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,8 @@ def django_test_expected_failures(self):
533533
"expressions.tests.BasicExpressionsTests.test_annotate_values_filter",
534534
"expressions.tests.BasicExpressionsTests.test_filtering_on_rawsql_that_is_boolean",
535535
"expressions.tests.BasicExpressionsTests.test_order_by_multiline_sql",
536+
"migrations.test_commands.MigrateTests.test_migrate_plan",
537+
"migrations.test_multidb.MultiDBOperationTests.test_run_sql_migrate_foo_router_with_hints",
536538
"migrations.test_operations.OperationTests.test_run_sql",
537539
"migrations.test_operations.OperationTests.test_run_sql_params",
538540
"migrations.test_operations.OperationTests.test_separate_database_and_state",
@@ -667,8 +669,29 @@ def django_test_expected_failures(self):
667669
},
668670
"transaction.atomic() is not supported.": {
669671
"backends.base.test_base.DatabaseWrapperLoggingTests",
672+
"migrations.test_executor.ExecutorTests.test_atomic_operation_in_non_atomic_migration",
670673
"migrations.test_operations.OperationTests.test_run_python_atomic",
671674
},
675+
"migrate --fake-initial is not supported.": {
676+
"migrations.test_commands.MigrateTests.test_migrate_fake_initial",
677+
"migrations.test_commands.MigrateTests.test_migrate_fake_split_initial",
678+
"migrations.test_executor.ExecutorTests.test_soft_apply",
679+
},
680+
"SchemaEditor doesn't log or collect queries.": {
681+
# https://github.com/mongodb-labs/django-mongodb/issues/141
682+
"migrations.test_commands.MigrateTests.test_migrate_syncdb_app_label",
683+
"migrations.test_commands.MigrateTests.test_migrate_syncdb_deferred_sql_executed_with_schemaeditor",
684+
"migrations.test_commands.MigrateTests.test_sqlmigrate_backwards",
685+
"migrations.test_commands.MigrateTests.test_sqlmigrate_for_non_atomic_migration",
686+
"migrations.test_commands.MigrateTests.test_sqlmigrate_for_non_transactional_databases",
687+
"migrations.test_commands.MigrateTests.test_sqlmigrate_forwards",
688+
"migrations.test_commands.MigrateTests.test_sqlmigrate_replaced_migration",
689+
"migrations.test_commands.MigrateTests.test_sqlmigrate_squashed_migration",
690+
},
691+
"SchemaEditor.create_model() must raise DatabaseError rather than "
692+
"pymongo.errors.CollectionInvalid: collection already exists": {
693+
"migrations.test_commands.MigrateTests.test_migrate_initial_false",
694+
},
672695
}
673696

674697
@cached_property

0 commit comments

Comments
 (0)