aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/tests/models.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
2013-10-18add test case around ensuring proper field inference for boolean model field ↵dpetzel
types
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-05-31Cleaning up imports and whitespaceTom Christie
2013-05-18Change BasicModel.verbose_nameMarkus Törnqvist
Isn't it nicer to test for a text which is different from what the previous broken behavior was? Now we can really tell it works!
2013-05-18Move and rename LabelModelSerializer for further reuseMarkus Törnqvist
2013-05-18Merge branch 'mikee2185-master' into mjtorn-masterMarkus Törnqvist
Conflicts: rest_framework/fields.py rest_framework/serializers.py rest_framework/tests/models.py rest_framework/tests/serializer.py Fixed all the conflicts.
2013-05-10Move models into test modules, out of models moduleTom Christie
2013-02-04Cleanup importsTom Christie
Mostly adding `from __future__ import unicode_literals` everywhere.
2013-01-25Cleaning up GFK test module. Refs #607.Tom Christie
2013-01-07Create separate *NullableOneToOneTests TestCaseMark Aaron Shirley
2013-01-04Handle ObjectDoesNotExist exceptions when serializing null reverse one-to-oneMark Aaron Shirley
2013-01-03Merge pull request #541 from yprez/default_and_partial_serializers2Tom Christie
Fix "default" values and partial serializers. Fixes #532.
2013-01-03Move relation tests models into models.pyMark Aaron Shirley
2012-12-25Regression test for #532 - values overriden by "default" settingYuri Prezument
2012-12-21Merge remote-tracking branch 'tom/master'Michal Dvorak (cen38289)
Conflicts: rest_framework/tests/serializer.py
2012-12-19urls, patterns, include imports move to compat to support incoming 1.3 thru ↵Tom Christie
1.6 import compatability
2012-12-19Merge pull request #510 from joual/masterTom Christie
Fixes #509
2012-12-17Merge remote-tracking branch 'tom/master'Michal Dvorak (cen38289)
Conflicts: rest_framework/serializers.py rest_framework/tests/serializer.py
2012-12-15Added test for "positive_integer in choices tuple does not get parsed if not ↵Joel Marcotte
string". Signed-off-by: Joel Marcotte <skaner@gmail.com>
2012-12-15Fix model validation exclusions. Fixes #500. Fixes #506.Tom Christie
2012-12-06Merge branch 'master' of ↵Marko Tibold
https://github.com/tomchristie/django-rest-framework into #431
2012-12-03#467 Added unit testMichal Dvorak
2012-11-30add traverse_related feature + tests (fixes issue#461)Pavel Savchenko
2012-11-22Added _post_clean() behaviour by adding a .perform_model_validation() method.Marko Tibold
Fixed some tests that were failing due to extra strict validation.
2012-11-21added missing lineStephan Groß
2012-11-21Merge remote-tracking branch 'upstream/master' into regex_fieldStephan Groß
Conflicts: docs/topics/release-notes.md
2012-11-21added testsStephan Groß
2012-11-20Fix related serializers with source argument that resolves to a callableJamie Matthews
2012-11-18Add support for min_length / max_length keywordsJacob Magnusson
on basic ModelFields
2012-11-10Reproduces #380Marko Tibold
2012-11-06Merge branch 'master' into restframework2-filterBen Konrath
2012-11-05added testcase for custom slug field in hyperlinkedrelatedfieldStephan Groß
2012-11-03Added test that makes sure that fields withJacob Magnusson
dictionaries as data are returned as expected and not turned into string representations
2012-11-01Merge branch 'master' into restframework2-filterBen Konrath
2012-10-30Merge fixes for 'blank=True' fields. Fixes #324, Fixes #325Tom Christie
Thanks to @Roarster.
2012-10-30Adding failing tests that show null=True model fields are won't validate if ↵Marko Tibold
their value is omitted.
2012-10-28Added wo tests. One for PUTing on a non-existing id-based url. And another ↵Marko Tibold
for PUTing on a non-existing slug-based url. Fix doctoring for 'test_put_cannot_set_id'.
2012-10-27Push tests into a seperate app namespace 'rest_framework.test'Tom Christie
Prevents tests from running by default when rest_framework is installed as 3rd party app. Fixes #316, #185
2012-10-26Fix failing 'default' on ModelSerializerTom Christie
2012-10-22#314 Fix for manytomany field being required in the payload even though the ↵Ian Strachan
field is specified as readonly in the serializer
2012-10-22Fix serialization of reverse relationshipsJamie Matthews
2012-10-17Make default field check safe for boolean values whereby 'False' may be an ↵Rob Dobson
acceptable default value
2012-10-11First attempt at adding filter support.Ben Konrath
The filter support uses django-filter to work its magic.
2012-10-08Fix #285Tom Christie
2012-10-04Fix for field to make it easier to access field relationshipsTom Christie
2012-10-04Tests for default arguments on fieldsTom Christie
2012-10-04Abstract out the app_label on test modelsTom Christie
2012-10-04Abstract out the app_label on test modelsTom Christie
2012-10-03Many2Many testTom Christie