From a62d3ec8b23949d02c0568a95450cc35f420e20f Mon Sep 17 00:00:00 2001 From: Thorsten Franzel Date: Mon, 6 Jan 2020 13:14:25 +0100 Subject: [PATCH] bugfix added upstream test --- tests/schemas/test_openapi.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/schemas/test_openapi.py b/tests/schemas/test_openapi.py index ef4fee651..84bae329a 100644 --- a/tests/schemas/test_openapi.py +++ b/tests/schemas/test_openapi.py @@ -635,12 +635,13 @@ class TestOperationIntrospection(TestCase): method, create_request(path), ) + registry = ComponentRegistry() inspector = AutoSchema() inspector.view = view + inspector.init(registry) + inspector.get_operation(path, method) - responses = inspector._get_responses(path, method) - response_schema = responses['200']['content']['application/json']['schema'] - properties = response_schema['items']['properties'] + properties = registry.schemas['Example']['properties'] assert 'default' not in properties['uuid_field'] def test_serializer_validators(self):