tests/conftest.py
def restart(backend):
    """Restart the running server from an async test function.

    This fixture deals with possible differences between the environment of the
    test function and that of the server.
    """

    async def restart(server):
        await backend.run_in_threadpool(AsyncioBackend().run, server.restart)

    return restart
Restart the running server from an async test function.

    This fixture deals with possible differences between the environment of the
    test function and that of the server.
    
Restart the running server from an async test function.
This fixture deals with possible differences between the environment of the
test function and that of the server.
Restart the running server from an async test function . This fixture deals with possible differences between the environment of the test function and that of the server .
def restart(backend):
    async def restart(server):
        await backend.run_in_threadpool(AsyncioBackend().run, server.restart)
    return restart
def restart ( backend ) : async def restart ( server ) : await backend . run_in_threadpool ( AsyncioBackend ( ) . run , server . restart ) return restart
Restart the running server from an async test function.
Restart the running server from an async test function .
"""Restart the running server from an async test function.

    This fixture deals with possible differences between the environment of the
    test function and that of the server.
    """
backend