Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/serializers
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #25550 -- Deprecated direct assignment to the ↵Tim Graham2015-10-272-3/+3
| | | | reverse side of a related set.
* Fixed #25468 -- Made DjangoJSONEncoder lazy string awareClaude Paroz2015-09-271-1/+16
| | | | | Thanks Stavros Korokithakis for the report and Tim Graham for the review.
* Made tests/serializers/models.py a models packageClaude Paroz2015-09-264-203/+207
| | | | Thanks Tim Graham for the patch series review.
* Moved remaining of serializers_regress to serializers testsClaude Paroz2015-09-262-0/+734
|
* Moved more serializers_regress to serializers testsClaude Paroz2015-09-262-2/+93
|
* Separated natural key serialization testsClaude Paroz2015-09-263-0/+107
|
* Separated JSON serialization testsClaude Paroz2015-09-262-260/+274
|
* Separated XML serialization testsClaude Paroz2015-09-262-98/+118
|
* Separated YAML serialization testsClaude Paroz2015-09-262-165/+181
|
* Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić2015-09-121-1/+1
|
* Fixed #21127 -- Started deprecation toward requiring ↵Flavio Curella2015-07-281-4/+4
| | | | on_delete for ForeignKey/OneToOneField
* Fixed #22258 -- Added progress status for dumpdata when ↵Claude Paroz2015-07-241-0/+11
| | | | | | outputting to file Thanks Gwildor Sok for the report and Tim Graham for the review.
* Fixed #24716 -- Deprecated Field._get_val_from_obj()Thomas Stephenson2015-07-141-1/+1
| | | | | | The method duplicates the functionality of Field.value_from_object() and has the additional downside of being a privately named public API method.
* Refs #25050 -- Corrected test assertion in serializers test.Tim Graham2015-07-031-1/+3
|
* Fixed #25050 -- Allowed serialization of models with ↵Grégoire ROCHER2015-07-021-0/+7
| | | | deferred fields.
* Fixed #20197 -- Made XML serializer fail loudly when ↵Claude Paroz2015-06-191-0/+15
| | | | | | outputting unserializable chars Thanks Tim Graham for the review.
* Fix for ticket 12685mick2015-06-101-1/+9
|
* Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette2015-05-201-3/+4
|
* Fixed #19820 -- Added more helpful error messages to ↵Richard Eames2015-04-092-1/+190
| | | | Python deserializer.
* Fixed #24558 -- Made dumpdata mapping ordering ↵Simon Charette2015-04-021-0/+45
| | | | | | deterministic. Thanks to gfairchild for the report and Claude for the review.
* Update converters to take a consistent set of parameters.Marc Tamlyn2015-02-201-1/+1
| | | | | | As suggested by Anssi. This has the slightly strange side effect of passing the expression to Expression.convert_value has the expression passed back to it, but it allows more complex patterns of expressions.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-11/+15
|
* Fixed #24020 -- Refactored SQL compiler to use expressionsAnssi Kääriäinen2015-01-081-1/+1
| | | | | | | | | | | | | | | Refactored compiler SELECT, GROUP BY and ORDER BY generation. While there, also refactored select_related() implementation (get_cached_row() and get_klass_info() are now gone!). Made get_db_converters() method work on expressions instead of internal_type. This allows the backend converters to target specific expressions if need be. Added query.context, this can be used to set per-query state. Also changed the signature of database converters. They now accept context as an argument.
* Removed numbering from the models.py header of some test ↵Loic Bistuer2014-09-241-1/+1
| | | | | | packages. This is a reliqua from the early days of the modeltests/regressiontests era.
* Fixed #18757, #14462, #21565 -- Reworked database-python ↵Marc Tamlyn2014-09-031-1/+4
| | | | | | | | | | | | | | type conversions Complete rework of translating data values from database Deprecation of SubfieldBase, removal of resolve_columns and convert_values in favour of a more general converter based approach and public API Field.from_db_value(). Now works seamlessly with aggregation, .values() and raw queries. Thanks to akaariai in particular for extensive advice and inspiration, also to shaib, manfre and timograham for their reviews.
* Fixed #22653 -- Added some database feature flags to tests.Tim Graham2014-06-111-1/+2
| | | | Thanks Rahul Priyadarshi.
* Removed legacy transaction management per the ↵Aymeric Augustin2014-03-211-10/+7
| | | | deprecation timeline.
* Imported override_settings from its new location.Aymeric Augustin2013-12-231-2/+2
|
* Added missing deconstruct() methods.Baptiste Mispelon2013-12-061-0/+5
|
* Fixing E302 ErrorsJason Myers2013-11-031-4/+8
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* Fixed #21302 -- Fixed unused imports and import *.Tim Graham2013-11-021-1/+0
|
* Fixed all the E203 violationsAlex Gaynor2013-10-271-1/+1
|
* Fix all violators of E231Alex Gaynor2013-10-261-2/+2
|
* Removed some direct settings manipulations in tests; ↵Bouke Haarsma2013-10-211-11/+7
| | | | refs #21230.
* Removed unused local variables in tests.Tim Graham2013-10-191-1/+1
|
* Fixed #21285 -- Fixed E121,E122 pep8 warningsAlasdair Nicol2013-10-181-3/+3
|
* Fixed #19885 -- cleaned up the django.test namespaceKevin Christopher Henry2013-09-091-1/+2
| | | | | | | | * override_settings may now be imported from django.test * removed Approximate from django.test * updated documentation for things importable from django.test Thanks akaariai for the suggestion.
* Fixed deprecation warning on Python 3Tim Graham2013-09-071-2/+2
|
* Cleanup commit after peer review.Roberto Aguilar2013-09-071-4/+5
|
* Updated NoYamlSerializerTestCase to run with yaml.Roberto Aguilar2013-09-071-2/+45
| | | | | | In order to verify the behavior of using the yaml serializer when yaml is on the system, fake the ImportError when the serializer is being registered.
* Added tests for missing pyyaml.Roberto Aguilar2013-09-061-1/+21
| | | | | This test makes sure an YAML import errors are communicated to the caller rather than stating the serializer does not exist.
* Fixed "indentation is not a multiple of four" pep8 issues.Tim Graham2013-09-031-3/+3
|
* Change test added in 3e34005b1b to be more stable.Ramiro Morales2013-09-011-17/+5
| | | | | It could fail when actual serialization JSON field ordering was different from the hard-coded one. Refs #13182.
* Properly skipped yaml tests when not installedClaude Paroz2013-08-311-45/+50
|
* Fixed #13182 -- Prevented trailing spaces in indented ↵Claude Paroz2013-08-311-0/+25
| | | | | | json output Thanks Stéphane Raimbault for the report and the initial patch.
* Removed most of absolute_import importsClaude Paroz2013-07-291-2/+2
| | | | | Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
* Stopped using django.utils.unittest in the test suite.Aymeric Augustin2013-07-011-1/+1
| | | | Refs #20680.
* Defined available_apps in relevant tests.Aymeric Augustin2013-06-101-0/+3
| | | | Fixed #20483.
* Made transaction.managed a no-op and deprecated it.Aymeric Augustin2013-03-111-1/+0
| | | | | | | | | | | | | | enter_transaction_management() was nearly always followed by managed(). In three places it wasn't, but they will all be refactored eventually. The "forced" keyword argument avoids introducing behavior changes until then. This is mostly backwards-compatible, except, of course, for managed itself. There's a minor difference in _enter_transaction_management: the top self.transaction_state now contains the new 'managed' state rather than the previous one. Django doesn't access self.transaction_state in _enter_transaction_management.
* Merged regressiontests and modeltests into the test root.Florian Apolloner2013-02-263-0/+627