From e987bab44cde10a66b0f13f657ccdf869bc424d7 Mon Sep 17 00:00:00 2001 From: Lucidiot Date: Sat, 6 Apr 2019 21:38:11 +0200 Subject: [PATCH] Sort lists in test --- tests/schemas/test_openapi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/schemas/test_openapi.py b/tests/schemas/test_openapi.py index ef233d52c..479b6405f 100644 --- a/tests/schemas/test_openapi.py +++ b/tests/schemas/test_openapi.py @@ -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']