def METHOD_NAME(
    mock_plugin_compatibility_verifier: PluginCompatibilityVerifier, puppet: Puppet
):
    mock_plugin_compatibility_verifier.verify_local_operating_system_compatibility = MagicMock(  # type: ignore [assignment]  # noqa: E501
        return_value=False
    )
    with pytest.raises(IncompatibleLocalOperatingSystemError):
        puppet.run_payload("test", {}, threading.Event())