def test_conf_json_description_not_given(mocker): mocker.patch( 'demisto_sdk.commands.common.hook_validations.conf_json.ConfJsonValidator.load_conf_file', return_value=None) validator = ConfJsonValidator() assert validator.is_valid_description_in_conf_dict(checked_dict=MISSING_DESCRIPTION) is False, \ "The conf validator couldn't find the missing description in the dictionary"
def test_conf_json_description_not_given(): validator = ConfJsonValidator() assert validator.is_valid_description_in_conf_dict(checked_dict=MISSING_DESCRIPTION) is False, \ "The conf validator couldn't find the missing description in the dictionary"
def test_conf_json_description(): validator = ConfJsonValidator() assert validator.is_valid_description_in_conf_dict(checked_dict=WITH_DESCRIPTION), \ "The conf validator couldn't find the description in the dictionary"