django1/tests/migrations
Curtis Maloney 88d7fcebde Use mock.patch in migrations tests
Currently some of the migrations tests rely on the fact 'input' is aliased
because of six, instead of using mock.patch.  Replace this code with proper
use of mock.patch.

Also, replace one case of excessively specific python version check with
testing six.PY3
2015-04-09 11:16:12 +10:00
..
deprecated_field_migrations Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05: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 #24264 -- Added failing test case for updating a FK when changing a PK 2015-02-16 19:31:51 +01:00
related_models_app Added tests for get_related_models_recursive 2015-02-16 19:31:52 +01:00
test_migrations Fixed #22881 -- Better soft_applied migration detection 2014-06-23 13:36:22 +12:00
test_migrations_backwards_deps_1 Revert "Fixed #23474 -- Prevented migrating backwards from unapplying the wrong migrations." 2014-09-24 15:49:30 -04:00
test_migrations_conflict Harmonized some PEP 0263 coding preambles 2014-05-15 19:58:41 +02:00
test_migrations_custom_user Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -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 Fixed #22861: Internal migrations done first so __first__ works 2014-06-17 23:28:35 -07:00
test_migrations_no_ancestor Fixed #22602 -- Improved code coverage of makemigrations command tests. 2014-05-23 08:05:46 -04:00
test_migrations_no_changes Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
test_migrations_no_default Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
test_migrations_run_before Implement Migration.run_before 2014-05-29 22:42:11 +12:00
test_migrations_squashed Harmonized some PEP 0263 coding preambles 2014-05-15 19:58:41 +02:00
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 Harmonized some PEP 0263 coding preambles 2014-05-15 19:58:41 +02:00
__init__.py
models.py Refs #23822 -- Made MigrationOptimizer aware of model managers 2015-01-07 17:33:04 -05:00
test_autodetector.py Fixed #24537 -- Ignored field order in RenameModel detection 2015-03-28 20:45:15 +01:00
test_base.py Made migrations tests write to a temporary directory. 2015-02-23 22:22:58 +01:00
test_commands.py Use mock.patch in migrations tests 2015-04-09 11:16:12 +10:00
test_deprecated_fields.py Removed IPAddressField per deprecation timeline; refs #20439. 2015-01-19 11:12:57 -05:00
test_executor.py Refs #24264 -- Added failing test case for updating a FK when changing a PK 2015-02-16 19:31:51 +01:00
test_graph.py Refs #24366 -- Fixed recursion depth error in migration graph 2015-03-29 16:08:07 +02:00
test_loader.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
test_multidb.py Fixed #24351, #24346 -- Changed the signature of allow_migrate(). 2015-02-20 21:34:09 +07:00
test_operations.py Renamed Field.rel attribute to remote_field 2015-03-25 08:16:12 -04:00
test_optimizer.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
test_state.py Fixed #24513 -- Made sure a model is only rendered once during reloads 2015-04-07 14:49:47 +02:00
test_writer.py Fixed #24278 -- Fixed serialization of migration operations. 2015-04-05 20:26:21 +02:00