aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/tests/test_serializer.py
AgeCommit message (Collapse)Author
2014-03-02Support for running the test suite with py.testAndreas Pelme
* Get rid of runtests.py * Moved test code from rest_framework/tests and rest_framework/runtests to tests * Invoke py.test from setup.py * Invoke py.test from Travis * Invoke py.test from tox * Changed setUpClass to be just plain setUp in test_permissions.py * Updated contribution guideline to show how to invoke py.test
2014-02-11Test and quick fix for #1257Carlton Gibson
2013-12-16Merge branch 'nullbooleanfield_testcase' of ↵Tom Christie
git://github.com/dpetzel/django-rest-framework into dpetzel-nullbooleanfield_testcase Conflicts: rest_framework/tests/test_serializer.py
2013-12-16Fix expansion of writable nested serializers where the inner fields have ↵Craig de Stigter
source set.
2013-12-13Fix default values always being False for browsable APIKevin Brown
This fixes a bug that was introduced in 28ff6fb [1] for the browsable API, specifically with how it handled default values for boolean fields. Previously, it had a global default for boolean fields set to `False`, which was different than the standard None that was used elsewhere. Because this only needed to be done for the browsable API, a fix was put into place that only set the default to `False` when form data was passed into the serializer. This had the unintended side effect of overriding any default set on the boolean field. This fixes #1101 [2] by only overriding the default if the default is `None`, which is the default for all fields. [1]: https://github.com/tomchristie/django-rest-framework/commit/28ff6fb1ec02b7a04c4a0db54885f3735b6dd43f [2]: https://github.com/tomchristie/django-rest-framework/issues/1101
2013-12-06Raise appropriate error in serializer when making a partial update to set a ↵Chuck Harmston
required RelatedField to null (issue #1158)
2013-10-18add test case around ensuring proper field inference for boolean model field ↵dpetzel
types
2013-10-17Merge pull request #1112 from tamakisquare/issue-1111Tom Christie
Test case and fix for issue 1111
2013-10-10Merge branch 'master' of https://github.com/tomchristie/django-rest-frameworkTom Christie
2013-10-10Ensure read-only fields don't break with current HTML renderer behaviorTom Christie
2013-10-09Merge pull request #1071 from craigds/field-transform-methodsCarlton Gibson
Feature: add transform_<fieldname> methods to serializers
2013-10-03add tests for transform_fieldname methodsCraig de Stigter
2013-09-20Correct typo in doc string.Carlton Gibson
2013-09-20Clear cached serializer data on `save()` + test. Fixes #1116.Carlton Gibson
2013-09-15[Add]: CustomValidationTests.test_partial_updateColin Huang
This test is to make sure that validate_<attrname> is not called when partial=True and <attrname> is not found in .data.
2013-08-30Fix failing empty serializer testTom Christie
2013-08-30Drop broken placeholder serializations.Tom Christie
2013-08-28Simplifying raw data renderering supportTom Christie
2013-08-27First hacky pass at displaying raw dataTom Christie
2013-07-21Fixed testPavel Zinovkin
2013-07-05Use 'force_text', not 'unicode', for compat across python versionTom Christie
2013-07-04Remove 'Hold down "Control" ...' message from help_textAndy Freeland
When getting the help_text from a field where `many=True`, Django appends 'Hold down "Control", or "Command" on a Mac, to select more than one.' to the help_text. This makes some sense in Django's ModelForms, but no sense in the API.
2013-06-04Test cases and fix for plain-list relationships (ie not queryset) Closes #878.Tom Christie
2013-06-03Regression test for #840. Closes #840.Tom Christie
2013-06-02Test cleanupTom Christie
2013-05-29Rename test modules to 1.6 styleTom Christie