(
loop: asyncio.AbstractEventLoop, app: web.Application
)
| 77 | |
| 78 | @pytest.fixture |
| 79 | def test_client( |
| 80 | loop: asyncio.AbstractEventLoop, app: web.Application |
| 81 | ) -> Iterator[_TestClient]: |
| 82 | async def make_client() -> TestClient[web.Request, web.Application]: |
| 83 | return TestClient(TestServer(app)) |
| 84 | |
| 85 | client = loop.run_until_complete(make_client()) |
| 86 | |
| 87 | loop.run_until_complete(client.start_server()) |
| 88 | yield client |
| 89 | loop.run_until_complete(client.close()) |
| 90 | |
| 91 | |
| 92 | def test_with_test_server_fails(loop) -> None: |
nothing calls this directly
no test coverage detected