1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00
django/tests/migrations
William Schwartz e64c1d8055 Fixed #32302 -- Allowed migrations to be loaded from regular packages with no __file__ attribute.
The migrations loader prevents the use of PEP-420 namespace packages
for holding apps' migrations modules. Previously the loader tested for
this only by checking that app.migrations.__file__ is present. This
prevented migrations' being found in frozen Python environments that
don't set __file__ on any modules. Now the loader *additionally* checks
whether app.migrations.__path__ is a list because namespace packages
use a different type for __path__. Namespace packages continue to be
forbidden, and, in fact, users of normal Python environments should
experience no change whatsoever.
2020-12-29 12:54:08 +01:00
..
deprecated_field_migrations
faulty_migrations
migrations_test_apps
related_models_app
test_add_many_to_many_field_initial
test_auto_now_add
test_fake_initial_case_insensitive
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
test_migrations_no_ancestor
test_migrations_no_changes
test_migrations_no_default
test_migrations_no_init
test_migrations_no_operations
test_migrations_non_atomic
test_migrations_order
test_migrations_plan
test_migrations_private
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
test_autodetector.py Fixed #31954 -- Fixed migration optimization for MTI model creation with parent model with mixed case app label. 2020-08-28 13:35:13 +02:00
test_base.py Removed hardcoded pks in migrations' test_alter_order_with_respect_to. 2020-11-07 20:26:01 +01:00
test_commands.py Fixed isolation of test_migrate_fake_split_initial. 2020-12-23 07:48:45 +01:00
test_deprecated_fields.py
test_exceptions.py
test_executor.py
test_graph.py
test_loader.py Fixed #32302 -- Allowed migrations to be loaded from regular packages with no __file__ attribute. 2020-12-29 12:54:08 +01:00
test_multidb.py
test_operations.py Removed hardcoded pks in migrations' test_alter_order_with_respect_to. 2020-11-07 20:26:01 +01:00
test_optimizer.py Fixed #32262 -- Fixed migration optimization for model creation and Meta options removal. 2020-12-18 06:57:57 +01:00
test_questioner.py
test_state.py Fixed #31742 -- Fixed makemigrations crash on ForeignKey to an app with mixed case label. 2020-06-26 23:18:59 +02:00
test_writer.py Fixed #31529 -- Added support for serialization of pathlib.Path/PurePath and os.PathLike in migrations. 2020-06-24 11:45:34 +02:00