mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-30 01:49:50 +03:00
Sort lists in test
This commit is contained in:
parent
71ed538a9e
commit
e987bab44c
|
@ -154,8 +154,8 @@ class TestOperationIntrospection(TestCase):
|
|||
|
||||
responses = inspector._get_responses(path, method)
|
||||
schema = responses['200']['content']['application/json']['schema']
|
||||
assert schema['required'] == ['text', 'nested']
|
||||
assert list(schema['properties'].keys()) == ['text', 'nested']
|
||||
assert sorted(schema['required']) == ['nested', 'text']
|
||||
assert sorted(list(schema['properties'].keys())) == ['nested', 'text']
|
||||
assert schema['properties']['nested']['type'] == 'object'
|
||||
assert list(schema['properties']['nested']['properties'].keys()) == ['number']
|
||||
assert schema['properties']['nested']['required'] == ['number']
|
||||
|
|
Loading…
Reference in New Issue
Block a user