def METHOD_NAME():
    instance = mock.MagicMock()
    instance.has_historical_job.return_value = True
    instance.get_historical_job.return_value = None
    with pytest.raises(UserFacingGraphQLError):
        _get_job_snapshot_from_instance(instance, "kjdkfjd")