summaryrefslogtreecommitdiff
path: root/tests/serializers
AgeCommit message (Collapse)Author
2016-01-29Refs #26022 -- Replaced six.assertRaisesRegex with assertRaisesMessage as ↵Hasan
appropriate.
2016-01-29Refs #26022 -- Used context manager version of assertRaises in tests.Hasan
2015-12-03Fixed many spelling mistakes in code, comments, and docs.Josh Soref
2015-10-27Fixed #25550 -- Deprecated direct assignment to the reverse side of a ↵Tim Graham
related set.
2015-09-27Fixed #25468 -- Made DjangoJSONEncoder lazy string awareClaude Paroz
Thanks Stavros Korokithakis for the report and Tim Graham for the review.
2015-09-26Made tests/serializers/models.py a models packageClaude Paroz
Thanks Tim Graham for the patch series review.
2015-09-26Moved remaining of serializers_regress to serializers testsClaude Paroz
2015-09-26Moved more serializers_regress to serializers testsClaude Paroz
2015-09-26Separated natural key serialization testsClaude Paroz
2015-09-26Separated JSON serialization testsClaude Paroz
2015-09-26Separated XML serialization testsClaude Paroz
2015-09-26Separated YAML serialization testsClaude Paroz
2015-09-12Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić
2015-07-27Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella
ForeignKey/OneToOneField
2015-07-24Fixed #22258 -- Added progress status for dumpdata when outputting to fileClaude Paroz
Thanks Gwildor Sok for the report and Tim Graham for the review.
2015-07-14Fixed #24716 -- Deprecated Field._get_val_from_obj()Thomas Stephenson
The method duplicates the functionality of Field.value_from_object() and has the additional downside of being a privately named public API method.
2015-07-03Refs #25050 -- Corrected test assertion in serializers test.Tim Graham
2015-07-02Fixed #25050 -- Allowed serialization of models with deferred fields.Grégoire ROCHER
2015-06-19Fixed #20197 -- Made XML serializer fail loudly when outputting ↵Claude Paroz
unserializable chars Thanks Tim Graham for the review.
2015-06-10Fix for ticket 12685mick
2015-05-20Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette
2015-04-09Fixed #19820 -- Added more helpful error messages to Python deserializer.Richard Eames
2015-04-02Fixed #24558 -- Made dumpdata mapping ordering deterministic.Simon Charette
Thanks to gfairchild for the report and Claude for the review.
2015-02-20Update converters to take a consistent set of parameters.Marc Tamlyn
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.
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-01-08Fixed #24020 -- Refactored SQL compiler to use expressionsAnssi Kääriäinen
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.
2014-09-24Removed numbering from the models.py header of some test packages.Loic Bistuer
This is a reliqua from the early days of the modeltests/regressiontests era.
2014-09-03Fixed #18757, #14462, #21565 -- Reworked database-python type conversionsMarc Tamlyn
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.
2014-06-11Fixed #22653 -- Added some database feature flags to tests.Tim Graham
Thanks Rahul Priyadarshi.
2014-03-21Removed legacy transaction management per the deprecation timeline.Aymeric Augustin
2013-12-23Imported override_settings from its new location.Aymeric Augustin
2013-12-06Added missing deconstruct() methods.Baptiste Mispelon
2013-11-02Fixing E302 ErrorsJason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-11-02Fixed #21302 -- Fixed unused imports and import *.Tim Graham
2013-10-26Fixed all the E203 violationsAlex Gaynor
2013-10-26Fix all violators of E231Alex Gaynor
2013-10-21Removed some direct settings manipulations in tests; refs #21230.Bouke Haarsma
2013-10-19Removed unused local variables in tests.Tim Graham
2013-10-17Fixed #21285 -- Fixed E121,E122 pep8 warningsAlasdair Nicol
2013-09-09Fixed #19885 -- cleaned up the django.test namespaceKevin Christopher Henry
* 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.
2013-09-06Fixed deprecation warning on Python 3Tim Graham
2013-09-06Cleanup commit after peer review.Roberto Aguilar
2013-09-06Updated NoYamlSerializerTestCase to run with yaml.Roberto Aguilar
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.
2013-09-06Added tests for missing pyyaml.Roberto Aguilar
This test makes sure an YAML import errors are communicated to the caller rather than stating the serializer does not exist.
2013-09-03Fixed "indentation is not a multiple of four" pep8 issues.Tim Graham
2013-09-01Change test added in 3e34005b1b to be more stable.Ramiro Morales
It could fail when actual serialization JSON field ordering was different from the hard-coded one. Refs #13182.
2013-08-31Properly skipped yaml tests when not installedClaude Paroz
2013-08-31Fixed #13182 -- Prevented trailing spaces in indented json outputClaude Paroz
Thanks Stéphane Raimbault for the report and the initial patch.
2013-07-29Removed most of absolute_import importsClaude Paroz
Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
2013-07-01Stopped using django.utils.unittest in the test suite.Aymeric Augustin
Refs #20680.