def ssl_monkey_patch() -> None:
"""
- Monky-patch for https://bugs.python.org/issue36709
+ Monkey-patch for https://bugs.python.org/issue36709
This prevents console errors when outstanding HTTPS connections
still exist at the point of exiting.
class BaseReader:
"""
- A stream reader. Abstracts away any asyncio-specfic interfaces
+ A stream reader. Abstracts away any asyncio-specific interfaces
into a more generic base class, that we can use with alternate
backend, or for stand-alone test cases.
"""
@pytest.mark.asyncio
async def test_differing_connection_keys(server):
"""
- Connnections to differing connection keys should result in multiple connections.
+ Connections to differing connection keys should result in multiple connections.
"""
async with httpx.ConnectionPool() as http:
response = await http.request("GET", "http://127.0.0.1:8000/")
def threadpool(func):
"""
- Our sync tests should run in seperate thread to the uvicorn server.
+ Our sync tests should run in separate thread to the uvicorn server.
"""
@functools.wraps(func)