From 3fcad23f88952579b6893ed8308b1e1c04fbe137 Mon Sep 17 00:00:00 2001 From: Olivier Heurtier Date: Sat, 20 Jan 2024 00:27:52 +0100 Subject: [PATCH] Fix pre-commit --- tests/test_model.py | 5 ++++- tests/test_openapi.py | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/test_model.py b/tests/test_model.py index 8990596..cc0e2ef 100644 --- a/tests/test_model.py +++ b/tests/test_model.py @@ -1125,7 +1125,10 @@ def test_filtering(self): - """) - renderer = renderers.ModelRenderer(None, {"include": ["A.*", "AB.*"], "exclude": ["B", ".*B"]}) + renderer = renderers.ModelRenderer(None, {"include": ["A.*", "AB.*"], "exclude": [ + "B", + ".*B" + ]}) text = '\n'.join(renderer.render_restructuredtext_markup(spec)) assert text == textwrap.dedent(""" .. _/components/schemas/A: diff --git a/tests/test_openapi.py b/tests/test_openapi.py index 20fddc4..dabb8c1 100644 --- a/tests/test_openapi.py +++ b/tests/test_openapi.py @@ -312,7 +312,7 @@ def test_path_option(self): def test_include_option(self): spec = collections.defaultdict(collections.OrderedDict) - spec['openapi'] ='3.0.0' + spec['openapi'] = '3.0.0' spec['paths']['/Aresource_a'] = { 'get': { 'description': 'resource a', @@ -356,7 +356,7 @@ def test_include_option(self): def test_exclude_option(self): spec = collections.defaultdict(collections.OrderedDict) - spec['openapi'] ='3.0.0' + spec['openapi'] = '3.0.0' spec['paths']['/Aresource_a'] = { 'get': { 'description': 'resource a',