Skip to content

Commit

Permalink
add_resource -> add_route
Browse files Browse the repository at this point in the history
  • Loading branch information
daanklijn committed Jun 27, 2020
1 parent 4a4946d commit a18eb7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_swagger.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ async def test_class_view_single_method(aiohttp_client, loop):

async def test_class_view_multiple_methods(aiohttp_client, loop):
app = web.Application(loop=loop)
app.router.add_resource("/class_view", ClassView)
app.router.add_route("*", "/class_view", ClassView)
setup_swagger(app)

client = await aiohttp_client(app)
Expand Down

0 comments on commit a18eb7c

Please sign in to comment.