async def mockservice_url(request, app, service_name):
    """Mock a service with its own url to test external services"""
    yield await _mockservice(request, app, name=service_name, url=True)
Mock a service with its own url to test external services
jupyterhub/tests/conftest.py