1
0
mirror of https://github.com/django/django.git synced 2025-01-02 14:35:59 +00:00
django/tests/migrations
Loic Bistuer 3a6c37fce4 [1.8.x] Fixed #24351, #24346 -- Changed the signature of allow_migrate().
The new signature enables better support for routing RunPython and
RunSQL operations, especially w.r.t. reusable and third-party apps.

This commit also takes advantage of the deprecation cycle for the old
signature to remove the backward incompatibility introduced in #22583;
RunPython and RunSQL won't call allow_migrate() when when the router
has the old signature.

Thanks Aymeric Augustin and Tim Graham for helping shape up the patch.

Refs 22583.

Conflicts:
	django/db/utils.py

Backport of bed504d70b from master
2015-02-20 21:55:50 +07:00
..
faulty_migrations [1.8.x] Refactored tests that rely on an ImportError for Python 3.5 compatibility 2015-02-03 18:31:17 -05:00
migrations_test_apps [1.8.x] Refs #24264 -- Added failing test case for updating a FK when changing a PK 2015-02-16 19:37:51 +01:00
related_models_app [1.8.x] Added tests for get_related_models_recursive 2015-02-16 19:38:10 +01:00
test_migrations
test_migrations_backwards_deps_1
test_migrations_conflict
test_migrations_custom_user [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
test_migrations_empty Fixed #23359 -- Added showmigrations command to list migrations and plan. 2014-12-31 14:14:28 -05:00
test_migrations_first
test_migrations_no_ancestor
test_migrations_no_changes [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
test_migrations_no_default [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
test_migrations_run_before
test_migrations_squashed
test_migrations_squashed_complex Fixed #24098 -- Added no-op attributes to RunPython and RunSQL 2015-01-09 10:31:32 -05:00
test_migrations_squashed_complex_multi_apps Fixed #24098 -- Added no-op attributes to RunPython and RunSQL 2015-01-09 10:31:32 -05:00
test_migrations_squashed_erroneous Fixed #24098 -- Added no-op attributes to RunPython and RunSQL 2015-01-09 10:31:32 -05:00
test_migrations_unmigdep
test_nōn_ascii_path/app [1.8.x] Added new "W503 line break before binary operator" warning to flake8 ignore. 2015-02-15 20:09:13 -05:00
test_nōn_ascii_path/app [1.8.x] Fixed #24343 -- Ensure db converters are used for foreign keys. 2015-02-20 11:46:57 +00:00
__init__.py
models.py Refs #23822 -- Made MigrationOptimizer aware of model managers 2015-01-07 17:33:04 -05:00
test_autodetector.py [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
test_base.py
test_commands.py [1.8.x] Refs #24324 -- Fixed Python 2 test failures when path to Django source contains non-ASCII characters. 2015-02-17 19:05:31 -05:00
test_executor.py [1.8.x] Refs #24264 -- Added failing test case for updating a FK when changing a PK 2015-02-16 19:37:51 +01:00
test_graph.py [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
test_loader.py [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
test_multidb.py [1.8.x] Fixed #24351, #24346 -- Changed the signature of allow_migrate(). 2015-02-20 21:55:50 +07:00
test_operations.py [1.8.x] Fixed #24362: Made test run each migration operation in its own schema editor 2015-02-18 22:51:06 +02:00
test_optimizer.py [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
test_state.py [1.8.x] Fixed #24291 - Fixed migration ModelState generation with unused swappable models 2015-02-18 19:11:51 +01:00
test_writer.py [1.8.x] Refs #24324 -- Fixed Python 2 test failures when path to Django source contains non-ASCII characters. 2015-02-17 19:05:31 -05:00