mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-31 10:30:01 +03:00
Update unit test
This commit is contained in:
parent
e8010ca1ea
commit
5ff849bd76
|
@ -105,8 +105,8 @@ class TestOperationIntrospection(TestCase):
|
||||||
inspector.view = view
|
inspector.view = view
|
||||||
|
|
||||||
request_body = inspector._get_request_body(path, method)
|
request_body = inspector._get_request_body(path, method)
|
||||||
assert request_body['content']['application/json']['required'] == ['text']
|
assert request_body['content']['application/json']['schema']['required'] == ['text']
|
||||||
assert list(request_body['content']['application/json']['properties'].keys()) == ['text']
|
assert list(request_body['content']['application/json']['schema']['properties'].keys()) == ['text']
|
||||||
|
|
||||||
def test_response_body_generation(self):
|
def test_response_body_generation(self):
|
||||||
path = '/'
|
path = '/'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user