mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-30 01:49:50 +03:00
Update unit test
This commit is contained in:
parent
e8010ca1ea
commit
5ff849bd76
|
@ -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 = '/'
|
||||
|
|
Loading…
Reference in New Issue
Block a user