summaryrefslogtreecommitdiff
path: root/tests/migrations/test_loader.py
AgeCommit message (Collapse)Author
2017-06-01Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.Jon Dufresne
2017-02-10Added multi_db=True to test cases that access the 'other' db connection.Tim Graham
Fixed a failure in the context processors tests when running in reverse on MySQL due to an extra query after refs #27683.
2017-02-03Fixed spelling of "nonexistent".Tim Graham
2017-01-18Refs #23919 -- Removed six.PY2/PY3 usageClaude Paroz
Thanks Tim Graham for the review.
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2016-09-17Refs #27025 -- Fixed "invalid escape sequence" warnings in Python 3.6.Tim Graham
http://bugs.python.org/issue27364
2016-09-16Fixed typo in tests/migrations/test_loader.py.Tim Graham
2016-09-01Fixed #27142, #27110 -- Made makemigrations consistency checks respect ↵Tim Graham
database routers. Partially reverted refs #27054 except for one of the tests as this solution supersedes that one. Thanks Shai Berger for the review.
2016-08-30Fixed #25109 -- Stopped silencing explicitly specified migration modules ↵Simon Charette
import errors. Thanks Tim for the review.
2016-08-23Fixed #27089 -- Added database alias to InconsistentMigrationHistory message.Tim Graham
2016-08-18Fixed #27054 -- Fixed makemigrations crash with a read-only database.Jim Nicholls
2016-08-05Fixed #27004 -- Made migrations consistency check ignore unapplied squashed ↵Jarek Glowacki
migrations.
2016-07-14Reverted "Fixed #25388 -- Added an option to allow disabling of migrations ↵Tim Graham
during test database creation" This reverts commit 157d7f1f1de4705daddebb77f21bd7097a74513d since it disables migrations all the time, not just during tests.
2016-05-08Sorted migration list order in test; added trailing comma.Jarek Glowacki
2016-05-08Fixed #25945, #26292 -- Refactored MigrationLoader.build_graph()Jarek Glowacki
2016-04-05Fixed #25850 -- Made migrate/makemigrations error on inconsistent history.Attila Tovt
2016-03-23Refs #25388 -- Used in-memory database in test_disable_migrations.Berker Peksag
2016-03-23Fixed #25388 -- Added an option to allow disabling of migrations during test ↵Berker Peksag
database creation
2016-02-24Used addCleanup() to call recorder.flush() in migration loader tests.Tim Graham
2015-09-12Fixed #24919 -- Allowed disabling of migrations on a per app basisMarkus Holtermann
2015-06-02Fixed #24895 -- Fixed loading a pair of squashed migrations with a dependency.Carl Meyer
2015-05-25Fixed #24848 -- Fixed ValueError for faulty migrations module.Marten Kenbeek
Added apps to unmigrated apps if the migrations module is a file or a folder missing __init__.py. Thanks to Ernest0x for the bug report.
2015-05-02Moved migration exception classes to shared moduleMarkus Holtermann
Thanks Aymeric Augustin for the review.
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-02-03Refactored tests that rely on an ImportError for Python 3.5 compatibilityTim Graham
A change in Python test discovery [1] causes the old packages that raised an error to be discovered; now we use a common directory that's ignored during discovery. Refs #23763. [1] http://bugs.python.org/issue7559
2014-10-30Fixed #23733 -- Fixed squashing migrations that depend on multiple apps.twidi
2014-10-30Fixed #23556 -- Raised a more meaningful error message when migrations refer ↵Markus Holtermann
to an unavailable node
2014-09-29Replaced set([foo, ...]) by {foo, ...} literals. Refs PR 3282.Thomas Chaumeny
Thanks Collin Anderson for the review.
2014-09-05Revert "Fixed #23384 -- Allowed overriding part of a dictionary-type setting"Claude Paroz
This reverts commit 66757fee7e921ad4c35e0b3f80c25e026100b31c. Discussions have led to think that this functionality does not bring significant benefits to justify the added complexity. Read also discussions on ticket #22734.
2014-08-30Fixed #23384 -- Allowed overriding part of a dictionary-type settingClaude Paroz
This change is needed for upcoming changes where settings might be grouped in a parent dictionary. Thanks Tim Graham for the review.
2014-07-22Fixed #23071 -- Use last migration's name in dependency to other appJeroen Dekkers
Changed the autodetector to lookup the name of the other app's last migration in the graph and use that as dependency instead of using __latest__.
2014-06-17Fixed #22861: Internal migrations done first so __first__ worksAndrew Godwin
Thanks to Chris Beaven.
2014-06-17Fix __latest__ to actually resolve to the latest migrationAndrew Godwin
2014-06-16Removed some u'' prefixes to fix Python 3.2.Tim Graham
2014-06-16Added database migration for contrib.auth.Tim Graham
refs #22170.
2014-06-16Added database migration for contrib.contenttypes.Tim Graham
Moved contenttypes tests to allow them to run correctly in the presence of migrations. refs #22170.
2014-06-05Merge pull request #2736 from SmileyChris/migration-run_beforeAndrew Godwin
Fixed #22725 - Migration.run_before does nothing
2014-05-29Fix additional test failures caused by migration pollutionAndrew Godwin
2014-05-29Implement Migration.run_beforeChris Beaven
This attribute (used for reverse dependencies) was previously declared and mentioned in the code, but never actually used.
2014-04-30Fixed #22485: Include all unmigrated apps in project state by default.Andrew Godwin
2014-04-30Fixed #22474 -- Made migration recorder aware of multiple databasesClaude Paroz
Thanks Tim Graham for the review.
2014-01-08Make test stronger to hopefully fix odd Jenkins failureAndrew Godwin
2014-01-08Fixed #21142: Dependency failures on unmigrated apps.Andrew Godwin
2013-12-24Renamed AppCache to Apps.Aymeric Augustin
Also renamed app_cache to apps and "app cache" to "app registry". Deprecated AppCache.app_cache_ready() in favor of Apps.ready().
2013-12-23Imported override_settings from its new location.Aymeric Augustin
2013-10-23Fix migration planner to fully understand squashed migrations. And test.Andrew Godwin
2013-09-06Fixed #21015 -- Fixed MigrationLoader when importlib.import_module returns a ↵Loic Bistuer
file module or an empty directory.
2013-09-06Fixed #21014 -- Fixed gobbled ImportError in MigrationLoader.Loic Bistuer
2013-07-22Make migrate command recognise prefixes and 'zero'.Andrew Godwin
2013-06-19Fix test running with new apps stuff/migrate actually running migrationsAndrew Godwin