1async def test_hi_to(service_client):
2 response = await service_client.get(
'/hi/flusk')
3 assert response.status == 200
4 assert 'text/plain' in response.headers[
'Content-Type']
5 assert response.text ==
'Hello, flusk'
8async def test_hi(service_client):
9 response = await service_client.get(
'/hi?name=pal')
10 assert response.status == 200
11 assert 'text/plain' in response.headers[
'Content-Type']
12 assert response.text ==
'Hi, pal'