mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-27 00:19:53 +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'
|
||||
}
|
||||
},
|
||||
'application/json-patch+json': {
|
||||
'schema': {
|
||||
'$ref': '#/components/schemas/Request'
|
||||
}
|
||||
},
|
||||
'application/x-www-form-urlencoded': {
|
||||
'schema': {
|
||||
'$ref': '#/components/schemas/Request'
|
||||
|
|
|
@ -39,6 +39,7 @@ class TestMetadata:
|
|||
],
|
||||
'parses': [
|
||||
'application/json',
|
||||
'application/json-patch+json',
|
||||
'application/x-www-form-urlencoded',
|
||||
'multipart/form-data'
|
||||
]
|
||||
|
@ -103,6 +104,7 @@ class TestMetadata:
|
|||
],
|
||||
'parses': [
|
||||
'application/json',
|
||||
'application/json-patch+json',
|
||||
'application/x-www-form-urlencoded',
|
||||
'multipart/form-data'
|
||||
],
|
||||
|
@ -366,6 +368,7 @@ class TestModelSerializerMetadata(TestCase):
|
|||
],
|
||||
'parses': [
|
||||
'application/json',
|
||||
'application/json-patch+json',
|
||||
'application/x-www-form-urlencoded',
|
||||
'multipart/form-data'
|
||||
],
|
||||
|
|
Loading…
Reference in New Issue
Block a user