def test_is_py_or_yml_invalid__validate_manager(self): """ Given: - A file path which contains a python script in a legacy yml schema When: - verifying the yml is valid using validate manager Then: - return a False validation response """ files_path = os.path.normpath( os.path.join(__file__, f'{git_path()}/demisto_sdk/tests', 'test_files')) test_file = os.path.join(files_path, 'UnifiedIntegrations/Integrations/integration-Symantec_Messaging_Gateway.yml') validate_manager = ValidateManager() res = validate_manager._is_py_script_or_integration(test_file) assert res is False
def test_is_py_or_yml__validate_manager(self): """ Given: - A file path which contains a python script When: - validating the associated yml file Then: - return a False validation response """ files_path = os.path.normpath( os.path.join(__file__, f'{git_path()}/demisto_sdk/tests', 'test_files')) test_file = os.path.join(files_path, 'CortexXDR', 'Integrations/PaloAltoNetworks_XDR/PaloAltoNetworks_XDR.yml') validate_manager = ValidateManager() res = validate_manager._is_py_script_or_integration(test_file) assert res is False