mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-27 03:54:01 +03:00
Disabled label and help_text in unit test. We should change the test so
that it sets them up.
This commit is contained in:
parent
b915c1d4d8
commit
08e9e2042c
|
@ -128,15 +128,17 @@ class TestRootView(TestCase):
|
||||||
for method in ('GET', 'POST',):
|
for method in ('GET', 'POST',):
|
||||||
expected['actions'][method] = {
|
expected['actions'][method] = {
|
||||||
'text': {
|
'text': {
|
||||||
#'description': '',
|
# TODO add help_text and label when they are available
|
||||||
'label': None,
|
#'help_text': '',
|
||||||
|
#'label': None,
|
||||||
'read_only': False,
|
'read_only': False,
|
||||||
'required': True,
|
'required': True,
|
||||||
'type': 'Single Character',
|
'type': 'Single Character',
|
||||||
},
|
},
|
||||||
'id': {
|
'id': {
|
||||||
#'description': '',
|
# TODO add help_text and label when they are available
|
||||||
'label': None,
|
#'help_text': '',
|
||||||
|
#'label': None,
|
||||||
'read_only': True,
|
'read_only': True,
|
||||||
'required': False,
|
'required': False,
|
||||||
'type': 'Integer',
|
'type': 'Integer',
|
||||||
|
@ -264,15 +266,19 @@ class TestInstanceView(TestCase):
|
||||||
for method in ('GET', 'PATCH', 'PUT', 'DELETE'):
|
for method in ('GET', 'PATCH', 'PUT', 'DELETE'):
|
||||||
expected['actions'][method] = {
|
expected['actions'][method] = {
|
||||||
'text': {
|
'text': {
|
||||||
|
# TODO uncomment label and description when they are
|
||||||
|
# available
|
||||||
#'description': '',
|
#'description': '',
|
||||||
'label': None,
|
#'label': None,
|
||||||
'read_only': False,
|
'read_only': False,
|
||||||
'required': True,
|
'required': True,
|
||||||
'type': 'Single Character',
|
'type': 'Single Character',
|
||||||
},
|
},
|
||||||
'id': {
|
'id': {
|
||||||
|
# TODO uncomment label and description when they are
|
||||||
|
# available
|
||||||
#'description': '',
|
#'description': '',
|
||||||
'label': None,
|
#'label': None,
|
||||||
'read_only': True,
|
'read_only': True,
|
||||||
'required': False,
|
'required': False,
|
||||||
'type': 'Integer',
|
'type': 'Integer',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user