def METHOD_NAME(request):
    METHOD_NAME = create_autospec(npmmod.install, return_value=request.param)
    with patch.dict(
        npm.__salt__,
        {
            "npm.list": create_autospec(npmmod.list_, return_value={}),
            "npm.install": METHOD_NAME,
        },
    ):
        yield METHOD_NAME