content: #  Copyright (c) ZenML GmbH 2022. All Rights Reserved.
  #
  #  Licensed under the Apache License, Version 2.0 (the "License");
  #  you may not use this file except in compliance with the License.
  #  You may obtain a copy of the License at:
  #
  #       https://www.apache.org/licenses/LICENSE-2.0
  #
  #  Unless required by applicable law or agreed to in writing, software
  #  distributed under the License is distributed on an "AS IS" BASIS,
  #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
  #  or implied. See the License for the specific language governing
  #  permissions and limitations under the License.
  import sys
  
  import pytest
  
  
  @pytest.mark.skipif(
      sys.version_info.minor == 12 or sys.version_info.minor == 13,
      reason="The deepchecks integrations is not yet supported on 3.12 or 3.13.",
  )
  def test_validation_check_fails_when_checking_name():
      """Ensures that the validation check fails when names not using our format."""
      from zenml.integrations.deepchecks.validation_checks import (
          DeepchecksValidationCheck,
      )
  
      deepchecks_validation_check = DeepchecksValidationCheck(
          "aria", "the_wrong_enum_value"
      )
      with pytest.raises(ValueError):
          deepchecks_validation_check.validate_check_name("abc")
  