We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0866b16 commit 7aaad0bCopy full SHA for 7aaad0b
pytest_aiohttp/plugin.py
@@ -82,9 +82,13 @@ async def aiohttp_server() -> Iterator[AiohttpServer]:
82
servers = []
83
84
async def go(
85
- app: Application, *, port: Optional[int] = None, **kwargs: Any
+ app: Application,
86
+ *,
87
+ host: str = "127.0.0.1",
88
+ port: Optional[int] = None,
89
+ **kwargs: Any,
90
) -> TestServer:
- server = TestServer(app, port=port)
91
+ server = TestServer(app, host=host, port=port)
92
await server.start_server(**kwargs)
93
servers.append(server)
94
return server
0 commit comments