def METHOD_NAME(self, dd_run_check):
    check = get_legacy_check({'share_labels': {'foo': {'values': [1.0]}}})
    with pytest.raises(
        Exception,
        match=(
            '^Entry #1 of option `values` for metric `foo` of setting `share_labels` must represent an integer$'
        ),
    ):
        dd_run_check(check, extract_message=True)