Skip to content

Commit

Permalink
Address pytest warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sloria committed Jan 19, 2024
1 parent 7ba74da commit 3bb8eda
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,7 @@ def test_path_resolve_refs_in_request_body_schema(self, spec):

class TestPlugins:
@staticmethod
def test_plugin_factory(return_none=False):
def make_test_plugin(return_none=False):
class TestPlugin(BasePlugin):
"""Test Plugin
Expand Down Expand Up @@ -1125,7 +1125,7 @@ def test_plugin_schema_helper_is_used(self, openapi_version, return_none):
title="Swagger Petstore",
version="1.0.0",
openapi_version=openapi_version,
plugins=(self.test_plugin_factory(return_none),),
plugins=(self.make_test_plugin(return_none),),
)
schema = {"dummy": "dummy"}
spec.components.schema("Pet", schema)
Expand All @@ -1144,7 +1144,7 @@ def test_plugin_parameter_helper_is_used(self, openapi_version, return_none):
title="Swagger Petstore",
version="1.0.0",
openapi_version=openapi_version,
plugins=(self.test_plugin_factory(return_none),),
plugins=(self.make_test_plugin(return_none),),
)
parameter = {"dummy": "dummy"}
spec.components.parameter("Pet", "body", parameter)
Expand All @@ -1167,7 +1167,7 @@ def test_plugin_response_helper_is_used(self, openapi_version, return_none):
title="Swagger Petstore",
version="1.0.0",
openapi_version=openapi_version,
plugins=(self.test_plugin_factory(return_none),),
plugins=(self.make_test_plugin(return_none),),
)
response = {"dummy": "dummy"}
spec.components.response("Pet", response)
Expand All @@ -1186,7 +1186,7 @@ def test_plugin_header_helper_is_used(self, openapi_version, return_none):
title="Swagger Petstore",
version="1.0.0",
openapi_version=openapi_version,
plugins=(self.test_plugin_factory(return_none),),
plugins=(self.make_test_plugin(return_none),),
)
header = {"dummy": "dummy"}
spec.components.header("Pet", header)
Expand All @@ -1207,7 +1207,7 @@ def test_plugin_path_helper_is_used(self, openapi_version, return_none):
title="Swagger Petstore",
version="1.0.0",
openapi_version=openapi_version,
plugins=(self.test_plugin_factory(return_none),),
plugins=(self.make_test_plugin(return_none),),
)
spec.path("/path_1")
paths = get_paths(spec)
Expand All @@ -1226,7 +1226,7 @@ def test_plugin_operation_helper_is_used(self, openapi_version):
title="Swagger Petstore",
version="1.0.0",
openapi_version=openapi_version,
plugins=(self.test_plugin_factory(),),
plugins=(self.make_test_plugin(),),
)
spec.path("/path_2", operations={"post": {"responses": {"200": {}}}})
paths = get_paths(spec)
Expand Down

0 comments on commit 3bb8eda

Please sign in to comment.