Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/migrations/test_commands.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #25604 -- Added makemigrations --check option.Jon Dufresne2015-10-241-1/+15
| | | | Command exits with non-zero status if changes without migrations exist.
* Refs #23359 -- Removed the migrate --list option per ↵Tim Graham2015-09-241-33/+1
| | | | deprecation timeline.
* Fixed #25390 -- Allowed specifying a start migration in ↵Markus Holtermann2015-09-191-0/+31
| | | | | | squashmigrations Thanks Tim Graham for the review.
* Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić2015-09-121-3/+6
|
* Refs #24919 -- Raised more helpful error message for ↵Markus Holtermann2015-09-121-0/+13
| | | | disabled migrations
* Fixed #25308 -- Made MigrationQuestioner respect ↵Jeremy Satterfield2015-08-261-0/+10
| | | | MIGRATION_MODULES setting.
* Fixed #24755 -- Hid operations from dependency apps when ↵Markus Holtermann2015-08-181-0/+33
| | | | | | merging migrations Thanks Carl Meyer for the report and Tim Graham for the review.
* Fixed #25239 -- Corrected makemigrations numbering if a ↵Caio Ariede2015-08-141-0/+13
| | | | migration has a number-only filename.
* Fixed #25231 -- Added recording of squashed migrations ↵mlavin2015-08-071-0/+46
| | | | | | | | in the migrate command. Ensured squashed migrations are recorded as applied when the migrate command is run and all of the original migrations have been previously applied.
* Fixed #24375 -- Added Migration.initial attributeAndrei Kulakov2015-07-131-0/+52
| | | | | | | The new attribute is checked when the `migrate --fake-initial` option is used. initial will be set to True for all initial migrations (this is particularly useful when initial migrations are split) as well as for squashed migrations.
* Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham2015-06-241-2/+2
| | | | | Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
* Removed support for Python 3.3.Tim Graham2015-06-181-1/+1
|
* Fixed #24828 -- Allowed migration optimization across ↵Markus Holtermann2015-06-161-1/+1
| | | | | | | | | | | | | | | | AlterFooTogether The idea behind this change is, that AlterUniqueTogether, AlterIndexTogether and AlterOrderWithRespectTo can always be moved after an Add/Alter/Rename/RemoveField operation if they don't refer to the respective field and are not empty sets / None. Combined with the optimizations of duplicate AlterUniqueTogether, AlterIndexTogether, and AlterOrderWithRespectTo operations from 128caa1e16ec2627737748f75c8e55600a3df97f, these operations are optimized in a later round of the optimizer. Thanks Tim Graham for the review.
* Use mock.patch in migrations testsCurtis Maloney2015-04-091-51/+38
| | | | | | | | | 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
* Fixed #24550 -- Added migration operation description to ↵Markus Holtermann2015-03-301-12/+47
| | | | | | sqlmigrate output Thanks Tim Graham for the review.
* Fixed #24427 -- Stopped writing migration files in dry ↵John Giannelos2015-03-161-0/+43
| | | | | | run mode when merging. Also added display of migration to stdout when verbosity=3.
* Fixed #23407 -- Extended coverage of makemigrations ↵Marten Kenbeek2015-03-081-0/+74
| | | | | | | --noinput option. Changed --noinput option in makemigrations to suppress all user prompts, not just when combined with --merge.
* Made migrations tests write to a temporary directory.Aymeric Augustin2015-02-231-178/+130
| | | | | | | | This is preferrable to writing in the current working directory because it eliminates the risk to leak unwanted files, which can result in very weird test failures. Also this will help if we ever try to run these tests concurrently.
* Refs #24324 -- Fixed Python 2 test failures when path to ↵Tim Graham2015-02-181-7/+8
| | | | Django source contains non-ASCII characters.
* Fixed #24184 -- Prevented automatic soft-apply of migrationsMarkus Holtermann2015-02-131-1/+60
| | | | | | | | | | | | Previously Django only checked for the table name in CreateModel operations in initial migrations and faked the migration automatically. This led to various errors and unexpected behavior. The newly introduced --fake-initial flag to the migrate command must be passed to get the same behavior again. With this change Django will bail out in with a "duplicate relation / table" error instead. Thanks Carl Meyer and Tim Graham for the documentation update, report and review.
* Fixed E265 comment styleCollin Anderson2015-02-061-1/+1
|
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-1/+1
|
* Fixed #23850 -- Fixed a migrations test failure on Mac ↵Collin Anderson2015-01-161-0/+6
| | | | OS X & Python 3
* Refs #23359 -- Removed double newline from output of ↵Markus Holtermann2015-01-051-17/+32
| | | | | | migrate --list Thanks Berker Peksag for the review.
* Fixed #23359 -- Added showmigrations command to list ↵Markus Holtermann2014-12-311-6/+140
| | | | | | | migrations and plan. Thanks to Collin Anderson, Tim Graham, Gabe Jackson, and Marc Tamlyn for their input, ideas, and review.
* Fixed #23728 -- Added the --exit option to makemigrations.Tim Heap2014-11-281-0/+12
| | | | | If no changes that need migrations are found, `makemigrations --exit` exits with error code 1.
* Fixed #23872 -- Removed sensitivity of migrations tests ↵Carl Meyer2014-11-191-14/+14
| | | | to CWD.
* Fixed #23799 -- Made makemigrations respect --no-optimize.Tillmann Karras2014-11-181-0/+39
| | | | Thanks to yamila-moreno for the idea of a skip message.
* Fixed #23620 -- Used more specific assertions in the ↵Berker Peksag2014-11-031-12/+12
| | | | Django test suite.
* Made testing of stdout and stderr more consistent.Loic Bistuer2014-10-221-67/+66
| | | | Refs #23663.
* Removed unneeded override_system_checksClaude Paroz2014-10-211-34/+1
| | | | Refs #23685.
* Revert "Fixed #23650 -- Prevented migrate from calling ↵Claude Paroz2014-10-201-21/+0
| | | | | | | | checks 3 times" This reverts commit 8d6e1afe0be0570253a508f43e2ef89ae640984e. call_command now always set skip_checks to True (tested in user_commands).
* Fixed #23650 -- Prevented migrate from calling checks 3 ↵Claude Paroz2014-10-171-0/+21
| | | | | | times Thanks Ilya Baryshev for the report and Tim Graham for the review.
* Fixed #23302 -- Added --name/-n option to makemigrations ↵Raffaele Salmaso2014-09-031-0/+31
| | | | command
* Fixed broken tests on Oracle after ↵Baptiste Mispelon2014-08-191-4/+4
| | | | | | | | | 5853c87a458f62ebd62d7809168355610de2570c. Oracle doesn't have a `BEGIN` statement so the test would fail. Refs #23303
* Fixed #23303 -- Added BEGIN and COMMIT statements to the ↵Baptiste Mispelon2014-08-181-0/+7
| | | | output of sqlmigrate.
* Fixed #22791 -- Invoke interactive questioner only for ↵Huu Nguyen2014-07-141-0/+46
| | | | | | conflicts in specified apps. Thanks bendavis78 for the report and Tim Graham for the review.
* Fixed test failures introduced by refs #22881.Tim Graham2014-06-231-0/+7
|
* Moved a line outside of try/except to prevent an error ↵Tim Graham2014-06-201-1/+1
| | | | | | in finally. Thanks Ian Foote.
* Fixed #22862 -- Added --noinput option to makemigrations.Huu Nguyen2014-06-201-15/+32
| | | | Thanks artortenburger for the report.
* Fixed #22823 (and partly #22563) - FKs from unmigrated ↵Andrew Godwin2014-06-121-0/+23
| | | | | | apps breaking state. Thanks to bendavis78 for the test and diagnostic work.
* Improved the test for refs #22682.Moayad Mardini2014-05-301-9/+7
| | | | Thanks apollo13 for the review.
* Fixed #22682 -- `makemigrations` will create ↵Moayad Mardini2014-05-301-0/+35
| | | | | | | | | `MIGRATION_MODULES` package `makemigrations` will automatically create the package specified in `MIGRATION_MODULES` if it doesn't already exist. Thanks ovidiuc4 for the report.
* Fixed #22675 -- makemigrations --dry-run to output ↵Moayad Mardini2014-05-261-0/+31
| | | | | | | migrations to stdout. `makemigrations --dry-run` will output the complete migrations file that would be written if it's used along with `--verbosity 3`.
* Fixed #22676 -- makemigrations --dry-run should not ask ↵Moayad Mardini2014-05-241-0/+20
| | | | | | | | | | for defaults Made the fix in InteractiveMigrationQuestioner class code, rather than MigrationAutodetector, because --dry-run shouldn't affect whether MigrationAutodetector will detect non-nullable fields, but the questioner should skip the question and returns a None for default (since that won't be used anyway) if --dry-run is used.
* Fixed #22602 -- Improved code coverage of makemigrations ↵Huu Nguyen2014-05-231-0/+151
| | | | command tests.
* Fixed #22661 -- Move makemigrations tests to the proper ↵Huu Nguyen2014-05-201-22/+22
| | | | class
* Harmonized some PEP 0263 coding preamblesClaude Paroz2014-05-151-1/+1
|
* Fixed #16905 -- Added extensible checks (nee validation) ↵Russell Keith-Magee2014-01-201-1/+16
| | | | | | | | | | | framework This is the result of Christopher Medrela's 2013 Summer of Code project. Thanks also to Preston Holmes, Tim Graham, Anssi Kääriäinen, Florian Apolloner, and Alex Gaynor for review notes along the way. Also: Fixes #8579, fixes #3055, fixes #19844.
* Used Apps.clear_cache() in tests that alter the app ↵Aymeric Augustin2013-12-291-1/+1
| | | | registry.