Test that we log an error if the proxy server is started without NextLayer addon. That is a mean trap to fall into when writing end-to-end tests.
(caplog)
| 187 | |
| 188 | |
| 189 | async def test_warn_no_nextlayer(caplog): |
| 190 | """ |
| 191 | Test that we log an error if the proxy server is started without NextLayer addon. |
| 192 | That is a mean trap to fall into when writing end-to-end tests. |
| 193 | """ |
| 194 | ps = Proxyserver() |
| 195 | with taddons.context(ps) as tctx: |
| 196 | tctx.configure(ps, listen_host="127.0.0.1", listen_port=0, server=False) |
| 197 | assert await ps.setup_servers() |
| 198 | ps.running() |
| 199 | assert "Warning: Running proxyserver without nextlayer addon!" in caplog.text |
| 200 | |
| 201 | |
| 202 | async def test_self_connect(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…