def _get_mockable_method_names(data_point: Any) -> list[str]:
    """Return all relevant method names for mocking."""
    method_list: list[str] = []
    for attribute in dir(data_point):
        # Get the attribute value
        attribute_value = getattr(data_point, attribute)
        # Check that it is callable
        if (
            callable(attribute_value)
            and attribute.startswith("_") is False
            and attribute not in EXCLUDE_METHODS_FROM_MOCKS
        ):
            method_list.append(attribute)
    return method_list
Return all relevant method names for mocking.
tests/helper.py