def METHOD_NAME(vertex_runner):
    """Test that a launch error is raised when we are missing a worker spec."""
    resource_args = {"vertex": {"worker_pool_specs": []}}
    launch_project = launch_project_factory(resource_args, vertex_runner._api)
    with pytest.raises(LaunchError) as e:
        vertex_runner.run(launch_project, "test-image")
    assert "requires at least one worker pool spec" in str(e.value)