Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/migrations/test_writer.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić2015-09-121-1/+3
|
* Fixed #25259 -- Added comments to header of generated ↵Tyson Clugg2015-08-311-1/+23
| | | | migration files
* Fixed #25185 -- Added support for functools.partial ↵Piper Merriam2015-07-291-0/+8
| | | | serialization in migrations
* Fixed #25186 -- Improved migration's serialization of ↵Piper Merriam2015-07-291-0/+5
| | | | builtins on Python 2.
* Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette2015-05-201-2/+2
|
* Fixed #24514 -- Made migration writer omit models import ↵Christopher Luc2015-04-101-0/+16
| | | | if it's unused.
* Fixed #24278 -- Fixed serialization of migration operations.Marten Kenbeek2015-04-051-0/+44
| | | | | | | Fixed MigrationWriter.serialize() to correctly handle migration operations by utilizing OperationWriter. Thanks Piotr Maliński for the report.
* Refs #24278 -- Allowed multi-line serializations in ↵Marten Kenbeek2015-04-051-15/+25
| | | | | | | OperationWriter. Changed OperationWriter to support multi-line serialized values with correct indentation.
* Fixed #24566 -- Added support for serializing timedeltaBaptiste Mispelon2015-04-021-0/+4
| | | | Thanks to knbk for the report.
* Fixed #24521 -- Added support for serializing frozensets ↵Baptiste Mispelon2015-03-231-0/+4
| | | | in migrations.
* Refs #24324 -- Fixed Python 2 test failures when path to ↵Tim Graham2015-02-181-1/+2
| | | | Django source contains non-ASCII characters.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-9/+11
|
* Fixed #24155 -- Maintained kwargs and import order in ↵Markus Holtermann2015-01-201-0/+28
| | | | | | migration writer Thanks Tomas Dobrovolny for the report and Tim Graham for the review.
* Cleaned up migration writer testsMarkus Holtermann2015-01-171-69/+61
|
* Fixed #24093 -- Prevented MigrationWriter to write ↵Markus Holtermann2015-01-081-2/+75
| | | | operation kwargs that are not explicitly deconstructed
* Applied ignore_warnings to Django testsClaude Paroz2014-12-301-8/+6
|
* Fixed #23998 -- Added datetime.time support to ↵Oscar Ramirez2014-12-221-0/+4
| | | | migrations questioner.
* Fixed reverse test execution for migration manager testsMarkus Holtermann2014-12-151-5/+6
| | | | Thanks to Tim Graham for reporting the issue; refs #23822
* Fixed #23822 -- Added support for serializing model ↵Markus Holtermann2014-12-151-0/+10
| | | | | | | managers in migration Thanks to Shai Berger, Loïc Bistuer, Simon Charette, Andrew Godwin, Tim Graham, Carl Meyer, and others for their review and input.
* Fixed #23950 -- Prevented calling deconstruct on classes ↵Gavin Wahl2014-12-031-0/+11
| | | | in MigrationWriter.
* Fixed #23770 -- Changed serialization strategy for ↵Markus Holtermann2014-11-061-0/+5
| | | | | | floats with respect to NaN and Inf Thanks to w0rp for the report
* Fixed #23365 -- Added support for timezone-aware ↵Rudy Mutter2014-09-301-3/+26
| | | | datetimes to migrations.
* Replaced set([foo, ...]) by {foo, ...} literals. Refs PR ↵Thomas Chaumeny2014-09-281-2/+2
| | | | | | 3282. Thanks Collin Anderson for the review.
* Fixed #23560 -- Fixed MigrationWrite to handle builtin ↵Loic Bistuer2014-09-261-0/+5
| | | | | | types without imports. Thanks Tim Graham for the review.
* Fixed broken test from da160d440f; refs #23418.Markus Holtermann2014-09-081-1/+1
|
* Fixed #23418 -- Fail when migration deconstruct produces ↵Markus Holtermann2014-09-081-2/+10
| | | | invalid import
* Fixed #23316 -- Added datetime.time serialization in ↵Lee Sanghyuck2014-08-191-0/+1
| | | | migrations.
* Silenced a Python 2 ImportWarning in a migrations test.Tim Graham2014-07-241-1/+7
|
* Fixed #22943 -- Correctly serialize compiled regexes.Simon Charette2014-07-041-12/+46
| | | | Thanks to antialiasis at gmail dot com for the patch.
* Fixed #22940 -- Added missing string iterpolation ↵Colin Wood2014-07-021-0/+13
| | | | | | parameters in migrations.writer error. Forwardport of f5740af868 from stable/1.7.x
* Fixed #22577: Python 3 broke on non-module migrations ↵Víðir Valberg Guðmundsson2014-06-171-0/+1
| | | | directory
* Fixed #22788 -- Ensured custom migration operations can ↵Matthew Schinckel2014-06-161-0/+22
| | | | | | | | be written. This inspects the migration operation, and if it is not in the django.db.migrations module, it adds the relevant imports to the migration writer and uses the correct class name.
* Fixed #22436: More careful checking on method ref'ce ↵Andrew Godwin2014-06-081-0/+27
| | | | serialization
* Fixed tuple serialization test.Baptiste Mispelon2014-05-231-1/+1
| | | | Thanks to rockallite for the report.
* Fixed #22679 -- Fixed empty tuple serialization in ↵Moayad Mardini2014-05-221-0/+12
| | | | | | MigrationWriter. Thanks rockallite.wulf for the report.
* Harmonized some PEP 0263 coding preamblesClaude Paroz2014-05-151-1/+1
|
* Appeased flake8 2.1.0.Aymeric Augustin2014-04-211-1/+1
|
* Fixed #22350 -- Consistently serialize bytes and text in ↵Simon Charette2014-04-141-4/+19
| | | | | | migrations. Thanks to @treyhunner and Loïc for their suggestions and review.
* Fixed #22363 -- Correctly serialize ↵Simon Charette2014-04-031-1/+9
| | | | | | `django.utils.datetime_safe` objects. Thanks to linovia for the report.
* Fixed #21954: Raise nice error when serializing ↵Andrew Godwin2014-02-091-0/+3
| | | | datetimes with timezones
* Added some missing whitespace around arithmetic operatorsAlex Gaynor2014-01-221-1/+1
|
* Fixed #21852 -- Make migration writer serialize iteratorsMarkus Holtermann2014-01-221-0/+7
|
* Fixed #21323 -- Improved readability of serialized ↵Loic Bistuer2014-01-191-1/+14
| | | | Operation.
* Implement swappable model support for migrationsAndrew Godwin2014-01-191-3/+13
|
* Dropped AppCache._empty, _with_app and _without_app.Aymeric Augustin2013-12-231-2/+1
| | | | | It's now easier to achieve the same effect with modify_settings or override_settings.
* Moved apps back in the toplevel django namespace.Aymeric Augustin2013-12-221-1/+1
| | | | Reverted 4a56a93cc458e9ab4dcab95d9f5067d4975dd1a2.
* Expurged INSTALLED_APPS from code and tests.Aymeric Augustin2013-12-221-8/+7
| | | | Except the app cache code and a few specific tests, of course.
* Deprecated load_app().Aymeric Augustin2013-12-221-5/+5
| | | | | | | | | Adjusted several tests that used it to add apps to the app cache and then attempted to remove them by manipulating attributes directly. Also renamed invalid_models to invalid_models_tests to avoid clashing application labels between the outer and the inner invalid_models applications.
* Moved the new app cache inside core.Aymeric Augustin2013-12-171-1/+1
|
* Removed module-level functions for the app cache.Aymeric Augustin2013-12-171-2/+2
| | | | | | | | | | | | | | | Since the original ones in django.db.models.loading were kept only for backwards compatibility, there's no need to recreate them. However, many internals of Django still relied on them. They were also imported in django.db.models. They never appear in the documentation, except a quick mention of get_models and get_app in the 1.2 release notes to document an edge case in GIS. I don't think that makes them a public API. This commit doesn't change the overall amount of global state but clarifies that it's tied to the app_cache object instead of hiding it behind half a dozen functions.