mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-28 08:59:54 +03:00
bugfix added upstream test
This commit is contained in:
parent
14c67259e5
commit
a62d3ec8b2
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user