def METHOD_NAME(protocol):
    f = Flow(protocol=protocol).add(uses='doesntexist.yml')
    from jina.excepts import RuntimeFailToStart
    with pytest.raises(RuntimeFailToStart):
        with f:
            pass