File tree Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 24
24
image_oembed_404_example ,
25
25
image_oembed_curl ,
26
26
image_related_200_example ,
27
- image_related_404_example ,
28
27
image_related_curl ,
29
28
image_search_200_example ,
30
29
image_search_400_example ,
109
108
res = {
110
109
200 : (ImageSerializer (many = True ), image_related_200_example ["results" ][0 ]),
111
110
401 : (AuthenticationFailed , None ),
112
- 404 : (NotFound , image_related_404_example ),
111
+ 404 : (NotFound , None ),
113
112
},
114
113
eg = [image_related_curl ],
115
114
)
119
118
201 : (ImageReportRequestSerializer , image_complain_201_example ),
120
119
401 : (AuthenticationFailed , None ),
121
120
400 : (ValidationError , None ),
121
+ 404 : (NotFound , None ),
122
122
},
123
123
eg = [image_complain_curl ],
124
124
)
Original file line number Diff line number Diff line change 35
35
image_oembed_200_example ,
36
36
image_oembed_404_example ,
37
37
image_related_200_example ,
38
- image_related_404_example ,
39
38
image_search_200_example ,
40
39
image_search_400_example ,
41
40
image_stats_200_example ,
Original file line number Diff line number Diff line change 121
121
],
122
122
}
123
123
124
- image_related_404_example = {"detail" : "An internal server error occurred." }
125
-
126
124
image_oembed_200_example = {
127
125
"version" : "1.0" ,
128
126
"type" : "photo" ,
You can’t perform that action at this time.
0 commit comments