1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00
django/tests/migrations
Simon Charette e0f8104a96 Refs #34553 -- Split constraint escaping test in subtests.
This ensures that constraint violations are tested in isolation from
each other as an IntegrityError only ensures a least one constraint is
violated.

For example, the assertion added in 42e8cf4 break both the
name_constraint_rhs and the rebate_constraint constraints and thus
doesn't constitute a proper regression test. Refs #32369.
2023-05-10 17:25:57 +02:00
..
deprecated_field_migrations Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
faulty_migrations Refactored tests that rely on an ImportError for Python 3.5 compatibility 2015-02-03 18:30:46 -05:00
migrations_test_apps Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
related_models_app Added tests for get_related_models_recursive 2015-02-16 19:31:52 +01:00
test_add_many_to_many_field_initial Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_auto_now_add Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_fake_initial_case_insensitive Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_migrations Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_migrations_atomic_operation Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_migrations_backwards_deps_1 Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_migrations_bad_pyc Fixed #29498 -- Fixed a missing pyc test file in source distribution. 2018-06-15 14:18:08 -04:00
test_migrations_clashing_prefix Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_migrations_conflict Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_migrations_conflict_long_name Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_migrations_custom_user Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_migrations_empty
test_migrations_fake_split_initial Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_migrations_first Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_migrations_initial_false Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_migrations_manual_porting Fixed #27844 -- Added optimizemigration management command. 2022-02-22 10:30:40 +01:00
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 Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_migrations_no_changes Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_migrations_no_default Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_migrations_no_init Fixed #29091 -- Fixed makemigrations crash if migrations directory doesn't have __init__.py. 2018-01-31 09:36:36 -05:00
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 Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_migrations_noop Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_migrations_order Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_migrations_plan Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01: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 Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_migrations_squashed Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_migrations_squashed_complex Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_migrations_squashed_complex_multi_apps Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_migrations_squashed_erroneous Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_migrations_squashed_extra Refs #23919 -- Removed encoding preambles and future imports 2017-01-18 09:55:19 +01:00
test_migrations_squashed_no_replaces Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_migrations_squashed_ref_squashed Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_migrations_unmigdep Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
__init__.py
models.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
routers.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_autodetector.py Fixed #34529, Refs #34525 -- Reduced index operations with Meta.indexes/index_together when optimizing migrations. 2023-05-03 13:06:19 +02:00
test_base.py Fixed #18468 -- Added support for comments on columns and tables. 2022-12-28 06:28:07 +01:00
test_commands.py Refs #34381 -- Fixed isolation of MigrateTests.test_migrate_fake_initial(). 2023-03-04 13:09:38 +01:00
test_deprecated_fields.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_exceptions.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_executor.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_graph.py Completed test coverage for django.db.migrations.graph. 2023-02-15 07:40:19 +01:00
test_loader.py Used more augmented assignment statements. 2022-10-31 12:30:13 +01:00
test_multidb.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_operations.py Refs #34553 -- Split constraint escaping test in subtests. 2023-05-10 17:25:57 +02:00
test_optimizer.py Refs #34534 -- Reduced Add/RemoveConstraint and Add/RenameIndex operations when optimizing migrations. 2023-05-09 12:45:09 +02:00
test_questioner.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_state.py Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_writer.py Fixed #34388 -- Allowed using choice enumeration types directly on model and form fields. 2023-03-21 19:44:41 +01:00