0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00
django/tests/migrations
Mariusz Felisiak c5cd878382
Refs #33476 -- Refactored problematic code before reformatting by Black.
In these cases Black produces unexpected results, e.g.

def make_random_password(
    self,
    length=10,
    allowed_chars='abcdefghjkmnpqrstuvwxyz' 'ABCDEFGHJKLMNPQRSTUVWXYZ' '23456789',
):

or

cursor.execute("""
SELECT ...
""",
    [table name],
)
2022-02-03 11:20:46 +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
test_migrations_custom_user
test_migrations_empty
test_migrations_fake_split_initial
test_migrations_first
test_migrations_initial_false
test_migrations_manual_porting Refs #22983 -- Added tests for squashing migrations with functions from migration files. 2021-12-27 18:49:19 +01:00
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_no_replaces Fixed #26760 -- Added --prune option to migrate command. 2022-01-21 17:10:31 +01:00
test_migrations_squashed_ref_squashed
test_migrations_unmigdep
__init__.py
models.py
routers.py
test_autodetector.py Fixed #33480 -- Fixed makemigrations crash when renaming field of renamed model. 2022-02-01 07:01:41 +01:00
test_base.py
test_commands.py Refs #33476 -- Refactored problematic code before reformatting by Black. 2022-02-03 11:20:46 +01:00
test_deprecated_fields.py
test_exceptions.py
test_executor.py Fixed #23273 -- Avoided creation of django_migrations table when there are no migrations to apply. 2021-12-30 06:36:55 +01:00
test_graph.py
test_loader.py Refs #24900 -- Added MigrationLoader test for applying squashed migrations. 2021-08-30 11:40:27 +02:00
test_multidb.py
test_operations.py Fixed #33462 -- Fixed migration crash when altering type of primary key with MTI and foreign key. 2022-01-27 18:51:39 +01: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 #29026 -- Allowed customizing InteractiveMigrationQuestioner's prompt destination. 2022-01-03 12:30:51 +01:00
test_state.py Fixed #33449 -- Fixed makemigrations crash on models without Meta.order_with_respect_to but with _order field. 2022-01-21 06:44:53 +01:00
test_writer.py Refs #33476 -- Refactored problematic code before reformatting by Black. 2022-02-03 11:20:46 +01:00