async def mockservice_external(request, app, service_name):
    """Mock an externally managed service (don't start anything)"""
    yield await _mockservice(request, app, name=service_name, external=True, url=False)
Mock an externally managed service (don't start anything)
jupyterhub/tests/conftest.py