@@ -125,25 +125,25 @@ def test_options_root_view(self):
125
125
'actions' : {}
126
126
}
127
127
# TODO: this is just a draft for fields' metadata - needs review and decision
128
- for method in ( 'GET' , 'POST' ,):
129
- expected ['actions' ][method ] = {
130
- 'text' : {
131
- # TODO add help_text and label when they are available
132
- #'help_text': '',
133
- #'label': None,
134
- 'read_only' : False ,
135
- 'required' : True ,
136
- 'type' : 'Single Character' ,
137
- },
138
- 'id' : {
139
- # TODO add help_text and label when they are available
140
- #'help_text': '',
141
- #'label': None,
142
- 'read_only' : True ,
143
- 'required' : False ,
144
- 'type' : 'Integer' ,
145
- },
146
- }
128
+ expected [ 'actions' ][ 'GET' ] = {}
129
+ expected ['actions' ]['POST' ] = {
130
+ 'text' : {
131
+ # TODO add help_text and label when they are available
132
+ #'help_text': '',
133
+ #'label': None,
134
+ 'read_only' : False ,
135
+ 'required' : True ,
136
+ 'type' : 'Single Character' ,
137
+ },
138
+ 'id' : {
139
+ # TODO add help_text and label when they are available
140
+ #'help_text': '',
141
+ #'label': None,
142
+ 'read_only' : True ,
143
+ 'required' : False ,
144
+ 'type' : 'Integer' ,
145
+ },
146
+ }
147
147
self .assertEqual (response .status_code , status .HTTP_200_OK )
148
148
self .assertEqual (response .data , expected )
149
149
@@ -263,7 +263,9 @@ def test_options_instance_view(self):
263
263
'actions' : {}
264
264
}
265
265
# TODO: this is just a draft idea for fields' metadata - needs review and decision
266
- for method in ('GET' , 'PATCH' , 'PUT' , 'DELETE' ):
266
+ for method in ('GET' , 'DELETE' ):
267
+ expected ['actions' ][method ] = {}
268
+ for method in ('PATCH' , 'PUT' ):
267
269
expected ['actions' ][method ] = {
268
270
'text' : {
269
271
# TODO uncomment label and description when they are
0 commit comments