def METHOD_NAME(pass_executable_invalid_utf8):
    config = {
        "pass_variable_prefix": "pass:",
        "pass_strict_fetch": True,
    }
    mocks = {
        "_get_pass_exec": MagicMock(return_value=pass_executable_invalid_utf8),
    }
    pass_path = "pass:secret"
    with patch.dict(pass_.__opts__, config), patch.dict(pass_.__dict__, mocks):
        with pytest.raises(
            salt.exceptions.SaltRenderError,
            match=r"Could not fetch secret 'secret' from the password store: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte",
        ):
            result = pass_.render(pass_path)