def test_validate_invalid_pack_dependencies__validate_manager(self, ):
     """
         Given:
             - A file path with invalid pack dependencies
         When:
             - checking validity of pack dependencies for added or modified files
         Then:
             - return a False validation response
     """
     validate_manager = ValidateManager(skip_conf_json=True)
     id_set_path = os.path.normpath(
         os.path.join(__file__, git_path(), 'demisto_sdk', 'tests', 'test_files', 'id_set', 'id_set.json'))
     result = validate_manager.validate_pack_unique_files('QRadar', pack_error_ignore_list={},
                                                          id_set_path=id_set_path)
     assert not result
示例#2
0
 def test_files_validator_validate_pack_unique_files__validate_manager(self, ):
     validate_manager = ValidateManager(skip_conf_json=True)
     result = validate_manager.validate_pack_unique_files(VALID_PACK, pack_error_ignore_list={})
     assert result