From 9ebd523592ee2a888b97ddaecdd560bed876c7e7 Mon Sep 17 00:00:00 2001 From: Yoann Date: Sat, 4 Dec 2021 16:50:37 +0100 Subject: [PATCH] Fix existing tests (parsers' content type) --- tests/schemas/test_openapi.py | 5 +++++ tests/test_metadata.py | 3 +++ 2 files changed, 8 insertions(+) diff --git a/tests/schemas/test_openapi.py b/tests/schemas/test_openapi.py index daa035a3f..8a0cea5e9 100644 --- a/tests/schemas/test_openapi.py +++ b/tests/schemas/test_openapi.py @@ -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' diff --git a/tests/test_metadata.py b/tests/test_metadata.py index 4abc0fc07..f45ec05df 100644 --- a/tests/test_metadata.py +++ b/tests/test_metadata.py @@ -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' ],