Commit 4bf38e5f authored by Goran Pavlovic's avatar Goran Pavlovic
Browse files

Merge branch 'Ekkertan-Fix_pyyaml_version'

parents 2f8622ce 39bb0bdf
......@@ -41,10 +41,10 @@ def _extract_swagger_docs(end_point_doc, method="get"):
def _build_doc_from_func_doc(route):
out = {}
if isclass(route.handler) and issubclass(route.handler, web.View) and route.method == METH_ANY:
method_names = {
attr for attr in dir(route.handler) \
attr for attr in dir(route.handler)
if attr.upper() in METH_ALL
}
for method_name in method_names:
......
......@@ -262,7 +262,7 @@ def test_wrong_method(test_client, loop):
@asyncio.coroutine
def test_class_view(test_client, loop):
app = web.Application(loop=loop)
app.router.add_route('*', "/class_view", ClassView)
app.router.add_view("/class_view", ClassView)
setup_swagger(app)
client = yield from test_client(app)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment