From 5ff849bd765ad35fcc8869817409491193d9b99c Mon Sep 17 00:00:00 2001 From: Lucidiot Date: Thu, 4 Apr 2019 09:23:28 +0200 Subject: [PATCH] Update unit test --- tests/schemas/test_openapi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/schemas/test_openapi.py b/tests/schemas/test_openapi.py index 5eede864b..f33a71361 100644 --- a/tests/schemas/test_openapi.py +++ b/tests/schemas/test_openapi.py @@ -105,8 +105,8 @@ class TestOperationIntrospection(TestCase): inspector.view = view request_body = inspector._get_request_body(path, method) - assert request_body['content']['application/json']['required'] == ['text'] - assert list(request_body['content']['application/json']['properties'].keys()) == ['text'] + assert request_body['content']['application/json']['schema']['required'] == ['text'] + assert list(request_body['content']['application/json']['schema']['properties'].keys()) == ['text'] def test_response_body_generation(self): path = '/'