1212# License for the specific language governing permissions and limitations
1313# under the License.
1414
15+ import pytest
1516from aiohttp import web
1617
1718from linebot .aiohttp_async_http_client import AiohttpAsyncHttpClient
1819
1920
21+ @pytest .mark .asyncio
2022async def test_get (aiohttp_client ):
2123 async def hello (request ):
2224 return web .Response (text = 'Hello, world' )
@@ -31,6 +33,7 @@ async def hello(request):
3133 assert 'Hello, world' in text
3234
3335
36+ @pytest .mark .asyncio
3437async def test_get_json (aiohttp_client ):
3538 async def hello (request ):
3639 return web .json_response ({'test' : 'Hello, world' })
@@ -44,6 +47,7 @@ async def hello(request):
4447 assert 'Hello, world' == json ['test' ]
4548
4649
50+ @pytest .mark .asyncio
4751async def test_get_iter (aiohttp_client ):
4852 async def hello (request ):
4953 return web .Response (text = 'Hello, world' )
@@ -61,6 +65,7 @@ async def hello(request):
6165 assert 'Hello, world' in buffer
6266
6367
68+ @pytest .mark .asyncio
6469async def test_post (aiohttp_client ):
6570 async def hello (request ):
6671 return web .Response (text = 'Hello, world' )
@@ -75,6 +80,7 @@ async def hello(request):
7580 assert 'Hello, world' in text
7681
7782
83+ @pytest .mark .asyncio
7884async def test_delete (aiohttp_client ):
7985 async def hello (request ):
8086 return web .Response (text = 'Hello, world' )
@@ -89,6 +95,7 @@ async def hello(request):
8995 assert 'Hello, world' in text
9096
9197
98+ @pytest .mark .asyncio
9299async def test_put (aiohttp_client ):
93100 async def hello (request ):
94101 return web .Response (text = 'Hello, world' )
0 commit comments