annotate examples/empty_server_test.py @ 11:0bc06da6bf74
start ferry1 patch protocol
author |
drewp@bigasterisk.com |
date |
Mon, 18 Mar 2024 16:42:21 -0700 |
parents |
25538e3ee531 |
children |
|
rev |
line source |
2
|
1 from pathlib import Path
|
|
2
|
|
3 import pytest
|
|
4
|
8
|
5 from examples._run_server_child import RunHttpServerChildProcess
|
2
|
6
|
|
7
|
|
8 @pytest.mark.asyncio
|
|
9 async def test_http_request_to_subprocess():
|
8
|
10 async with RunHttpServerChildProcess(Path('examples/empty_server.py')) as http_server:
|
2
|
11 response = await http_server.get('http://localhost:8005/')
|
|
12 assert response.status == 200
|