django/tests/migrations
Simon Charette 7e6a2e3b45 [4.0.x] Fixed #33366 -- Fixed case handling with swappable setting detection in migrations autodetector.
The migration framework uniquely identifies models by case insensitive
labels composed of their app label and model names and so does the app
registry in most of its methods (e.g. AppConfig.get_model) but it
wasn't the case for get_swappable_settings_name() until this change.

This likely slipped under the radar for so long and only regressed in
b9df2b74b9 because prior to the changes
related to the usage of model states instead of rendered models in the
auto-detector the exact value settings value was never going through a
case folding hoop.

Thanks Andrew Chen Wang for the report and Keryn Knight for the
investigation.

Backport of 4328970780 from main
2021-12-17 10:00:33 +01:00
..
deprecated_field_migrations
faulty_migrations
migrations_test_apps Fixed #25884 -- Fixed migrate --run-syncdb when specifying an app label. 2018-11-14 18:22:59 -05:00
related_models_app
test_add_many_to_many_field_initial
test_auto_now_add
test_fake_initial_case_insensitive Refs #29808 -- Fixed MigrateTests.test_migrate_fake_initial_case_insensitive() crash on Oracle. 2019-11-15 21:05:42 +01:00
test_migrations
test_migrations_atomic_operation
test_migrations_backwards_deps_1
test_migrations_bad_pyc
test_migrations_clashing_prefix
test_migrations_conflict
test_migrations_conflict_long_name Fixed #31769 -- Improved default naming of merged migrations. 2020-07-20 15:04:22 +02:00
test_migrations_custom_user
test_migrations_empty
test_migrations_fake_split_initial
test_migrations_first
test_migrations_initial_false
test_migrations_namespace_package Fixed #30300 -- Allowed migrations to be loaded from directories without __init__.py file. 2019-10-10 08:31:41 +02:00
test_migrations_no_ancestor
test_migrations_no_changes
test_migrations_no_default
test_migrations_no_init
test_migrations_no_operations Fixed #30595 -- Added error message when no objects found to sql* management commands. 2019-07-01 13:47:54 +02:00
test_migrations_non_atomic
test_migrations_order
test_migrations_plan Fixed #30870 -- Fixed showing that RunPython operations are irreversible by migrate --plan. 2019-10-14 11:13:27 +02:00
test_migrations_private Fixed #29749 -- Made the migrations loader ignore files starting with a tilde or underscore. 2018-09-11 12:51:11 -04:00
test_migrations_run_before
test_migrations_squashed
test_migrations_squashed_complex
test_migrations_squashed_complex_multi_apps
test_migrations_squashed_erroneous
test_migrations_squashed_extra
test_migrations_squashed_ref_squashed
test_migrations_unmigdep
__init__.py
models.py
routers.py Refs #31117 -- Made various tests properly handle unexpected databases aliases. 2020-01-20 14:39:02 +01:00
test_autodetector.py [4.0.x] Fixed #33366 -- Fixed case handling with swappable setting detection in migrations autodetector. 2021-12-17 10:00:33 +01:00
test_base.py Fixed #26167 -- Added support for functional indexes. 2021-01-13 11:47:50 +01:00
test_commands.py Fixed #24900 -- Allowed migrating backward to squashed migrations. 2021-08-30 12:08:04 +02:00
test_deprecated_fields.py
test_exceptions.py
test_executor.py Fixed #24900 -- Allowed migrating backward to squashed migrations. 2021-08-30 12:08:04 +02:00
test_graph.py Fixed #29243 -- Improved efficiency of migration graph algorithm. 2018-09-10 09:57:31 -04:00
test_loader.py Refs #24900 -- Added MigrationLoader test for applying squashed migrations. 2021-08-30 11:40:27 +02:00
test_multidb.py Moved migrations.test_operations.OperationTestBase to migrations.test_base. 2019-08-19 16:06:14 +02:00
test_operations.py [4.0.x] Fixed #33194 -- Fixed migrations when altering a field with functional indexes/unique constraints on SQLite. 2021-10-18 09:36:21 +02:00
test_optimizer.py Fixed #32256 -- Fixed migration optimization crash when swapping field names. 2021-02-19 11:19:01 +01:00
test_questioner.py Refs #32900 -- Added test for ignoring the default value in InteractiveMigrationQuestioner.ask_not_null_alteration(). 2021-08-27 13:27:37 +02:00
test_state.py Refs #29898 -- Changed fields in ProjectState's relation registry to dict. 2021-08-26 07:49:37 +02:00
test_writer.py Fixed #32365 -- Made zoneinfo the default timezone implementation. 2021-09-16 12:11:05 +02:00