aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/tests
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-28Merge pull request #1437 from Keats/masterTom Christie
Display the media type of the API response on the browsable API
2014-02-27Allow 'None' to pass as a null value in RelatedFieldsDustin Farris
2014-02-26Display the media type of the API response on the browsable APIKeats
2014-02-26Demonstrate problem post/put'ing serialized data that contains 'None'Dustin Farris
2014-02-13Merge pull request #1397 from amezhenin/issue_1386Tom Christie
update regex for matching URLs, fixes issue #1386
2014-02-13(I hope) tests are fixed, issue #1386Artem Mezhenin
2014-02-13change regex back, issue #1386Artem Mezhenin
2014-02-11Test and fix for #1210. World's lowest hanging fruit.Carlton Gibson
2014-02-11Test and quick fix for #1257Carlton Gibson
2014-02-09issue #1386Artem Mezhenin
* regex for matching URLs was rewritten * added unittests
2014-01-28Add file upload test for APIRequestFactoryIan Foote
Remove test_compat
2014-01-28Import force_bytes on django >= 1.5Ian Foote
2014-01-17Merge pull request #1361 from ross/x_method_overrideTom Christie
always obey X-HTTP-METHOD-OVERRIDE header
2014-01-17always obey X-HTTP-METHOD-OVERRIDE headerRoss McFarland
required to support old flash/flex clients that need to do everything as GET requests (apparently to allow for any error handlings)
2014-01-17Encode django QuerySets to lists and not dicts in JSONEncoderMathieu Pillard
2014-01-15Security update to OrderingFilter2.3.12Tom Christie
2014-01-14Merge branch 'master' of git://github.com/sprymak/django-rest-framework into ↵Tom Christie
sprymak-master
2014-01-14Test for customizable HyperlinkedModelSerializer url field nameS.Prymak
2014-01-14Added write_only and write_only_fields. Refs #1306Tom Christie
2014-01-13Merge branch 'testing-nested-serializers' of ↵Tom Christie
git://github.com/dustinfarris/django-rest-framework into dustinfarris-testing-nested-serializers
2014-01-13Move ImportingModelSerializerTests and add comments.Dustin Farris
2014-01-13Move models.resolve_model to serializers._resolve_modelDustin Farris
2014-01-12Add a sanity check to avoid running into unresolved related models.Dustin Farris
2014-01-09Test case for #1129Xavier Ordoquy
2014-01-09Move serializer import to top-level causes test errorDustin Farris
2014-01-08Testing nested serializers with models that have str foreign key references.Dustin Farris
2013-12-23can't save genericrelations via nested serializers in django 1.6S. Andrew Sheppard
2013-12-23Tweak test styleTom Christie
2013-12-23Updated tests to pass in python 3Tom Christie
2013-12-23fix url double quoted in Django 1.6Yin Jifeng
get_full_path returns unicode, so we use build_absolute_uri which returns iri_to_uri'ed one
2013-12-21Merge pull request #1309 from lukaszb/errors-for-renamed-fieldsTom Christie
Should it be that way?
2013-12-21Additional test for 'source' behaviour. Refs #1302Tom Christie
2013-12-20Should it be that way?Lukasz Balcerzak
2013-12-20Merge pull request #1308 from lukaszb/missing-custom-validation-method-testTom Christie
Added missing custom validation method test
2013-12-20Added missing custom validation method testLukasz Balcerzak
2013-12-20Updated test class name to be uniqueLukasz Balcerzak
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-13Compat fixes for django-oauth-plus versions 2.0-2.2.1Tom Christie
2013-12-13Merge branch 'master' of git://github.com/philipforget/django-rest-framework ↵Tom Christie
into philipforget-master
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-13Merge pull request #1234 from linovia/bugfix/nested_models_without_related_nameTom Christie
Fixed the nested model serializers in case of the related_name isn’t set...
2013-12-09Fix compat issues for #1231Tom Christie
2013-12-09Merge branch 'issue-1231-jsonencoder' of ↵Tom Christie
git://github.com/mbox/django-rest-framework into mbox-issue-1231-jsonencoder
2013-12-09Merge masterTom Christie
2013-12-09Drop unneeded assertTom Christie
2013-12-09Catch and mask ParseErrors that occur during rendering of the BrowsableAPI.Tom Christie
2013-12-06Version 2.3.102.3.10Tom Christie
2013-12-06Raise appropriate error in serializer when making a partial update to set a ↵Chuck Harmston
required RelatedField to null (issue #1158)