Skip to content

Commit

Permalink
Fix pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Heurtier committed Jan 19, 2024
1 parent 247e19e commit 3fcad23
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion tests/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions tests/test_openapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 3fcad23

Please sign in to comment.