From 4e96afe49a9c721e3cae88d49494292945a93f98 Mon Sep 17 00:00:00 2001 From: Pierre Chiquet Date: Wed, 18 Nov 2020 12:07:15 +0100 Subject: [PATCH] fix test for python 3.5 --- tests/schemas/test_openapi.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/schemas/test_openapi.py b/tests/schemas/test_openapi.py index 10504609c..871eb1b30 100644 --- a/tests/schemas/test_openapi.py +++ b/tests/schemas/test_openapi.py @@ -1003,8 +1003,7 @@ class TestGenerator(TestCase): schema = generator.get_schema(request=request) ret = JSONOpenAPIRenderer().render(schema) - expected_start = b'{\n "openapi": ' - assert expected_start == ret[:len(expected_start)] + assert b'"openapi": "' in ret assert b'"default": "0.0"' in ret def test_schema_with_no_paths(self):