aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/tests
diff options
context:
space:
mode:
authorOscar Vilaplana2013-05-19 11:26:56 +0200
committerOscar Vilaplana2013-05-19 11:26:56 +0200
commit08e9e2042c99cde66721a22475df6e084a06e3d2 (patch)
tree405d29887c9ad1ba0c7280069215e35d4f1fdad9 /rest_framework/tests
parentb915c1d4d81fc459ed7c79ee5264ef7467963c3f (diff)
downloaddjango-rest-framework-08e9e2042c99cde66721a22475df6e084a06e3d2.tar.bz2
Disabled label and help_text in unit test. We should change the test so
that it sets them up.
Diffstat (limited to 'rest_framework/tests')
-rw-r--r--rest_framework/tests/generics.py18
1 files changed, 12 insertions, 6 deletions
diff --git a/rest_framework/tests/generics.py b/rest_framework/tests/generics.py
index a1edd28d..293c6633 100644
--- a/rest_framework/tests/generics.py
+++ b/rest_framework/tests/generics.py
@@ -128,15 +128,17 @@ class TestRootView(TestCase):
for method in ('GET', 'POST',):
expected['actions'][method] = {
'text': {
- #'description': '',
- 'label': None,
+ # TODO add help_text and label when they are available
+ #'help_text': '',
+ #'label': None,
'read_only': False,
'required': True,
'type': 'Single Character',
},
'id': {
- #'description': '',
- 'label': None,
+ # TODO add help_text and label when they are available
+ #'help_text': '',
+ #'label': None,
'read_only': True,
'required': False,
'type': 'Integer',
@@ -264,15 +266,19 @@ class TestInstanceView(TestCase):
for method in ('GET', 'PATCH', 'PUT', 'DELETE'):
expected['actions'][method] = {
'text': {
+ # TODO uncomment label and description when they are
+ # available
#'description': '',
- 'label': None,
+ #'label': None,
'read_only': False,
'required': True,
'type': 'Single Character',
},
'id': {
+ # TODO uncomment label and description when they are
+ # available
#'description': '',
- 'label': None,
+ #'label': None,
'read_only': True,
'required': False,
'type': 'Integer',