mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-02 19:40:13 +03:00
Add unit test for d4c8f2db
This commit is contained in:
parent
d4c8f2db0e
commit
a099cab010
|
@ -84,6 +84,7 @@ class TestMetadata:
|
|||
)
|
||||
)
|
||||
nested_field = NestedField()
|
||||
uuid_field = serializers.UUIDField(label="UUID field")
|
||||
|
||||
class ExampleView(views.APIView):
|
||||
"""Example view."""
|
||||
|
@ -172,7 +173,13 @@ class TestMetadata:
|
|||
'label': 'B'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
'uuid_field': {
|
||||
"type": "string",
|
||||
"required": True,
|
||||
"read_only": False,
|
||||
"label": "UUID field",
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user