Mercurial > code > home > repos > rdferry
diff examples/empty_server_test.py @ 8:25538e3ee531
rename
author | drewp@bigasterisk.com |
---|---|
date | Sat, 16 Mar 2024 12:51:39 -0700 |
parents | b4dc3eb1f92b |
children |
line wrap: on
line diff
--- a/examples/empty_server_test.py Sat Mar 16 12:36:13 2024 -0700 +++ b/examples/empty_server_test.py Sat Mar 16 12:51:39 2024 -0700 @@ -2,11 +2,11 @@ import pytest -from examples.run_server_make_request import HttpServer +from examples._run_server_child import RunHttpServerChildProcess @pytest.mark.asyncio async def test_http_request_to_subprocess(): - async with HttpServer(Path('examples/empty_server.py')) as http_server: + async with RunHttpServerChildProcess(Path('examples/empty_server.py')) as http_server: response = await http_server.get('http://localhost:8005/') assert response.status == 200