mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-27 08:29:59 +03:00
Fix existing tests (parsers' content type)
This commit is contained in:
parent
f8813b89f4
commit
9ebd523592
|
@ -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'
|
||||||
|
|
|
@ -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'
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user