Fix existing tests (parsers' content type)

This commit is contained in:
Yoann 2021-12-04 16:50:37 +01:00
parent f8813b89f4
commit 9ebd523592
2 changed files with 8 additions and 0 deletions

View File

@ -789,6 +789,11 @@ class TestOperationIntrospection(TestCase):
'$ref': '#/components/schemas/Request' '$ref': '#/components/schemas/Request'
} }
}, },
'application/json-patch+json': {
'schema': {
'$ref': '#/components/schemas/Request'
}
},
'application/x-www-form-urlencoded': { 'application/x-www-form-urlencoded': {
'schema': { 'schema': {
'$ref': '#/components/schemas/Request' '$ref': '#/components/schemas/Request'

View File

@ -39,6 +39,7 @@ class TestMetadata:
], ],
'parses': [ 'parses': [
'application/json', 'application/json',
'application/json-patch+json',
'application/x-www-form-urlencoded', 'application/x-www-form-urlencoded',
'multipart/form-data' 'multipart/form-data'
] ]
@ -103,6 +104,7 @@ class TestMetadata:
], ],
'parses': [ 'parses': [
'application/json', 'application/json',
'application/json-patch+json',
'application/x-www-form-urlencoded', 'application/x-www-form-urlencoded',
'multipart/form-data' 'multipart/form-data'
], ],
@ -366,6 +368,7 @@ class TestModelSerializerMetadata(TestCase):
], ],
'parses': [ 'parses': [
'application/json', 'application/json',
'application/json-patch+json',
'application/x-www-form-urlencoded', 'application/x-www-form-urlencoded',
'multipart/form-data' 'multipart/form-data'
], ],