Tests/scripts/hook_validations/pack_unique_files.py
def _is_pack_meta_file_structure_valid(self):
        """Check if pack-metadata.json structure is json parse-able"""
        try:
            pack_meta_file_content = self._read_file_content(self.pack_meta_file)
            if pack_meta_file_content and json.loads(pack_meta_file_content):
                return True
        except (ValueError, TypeError):
            self._add_error('Could not parse {} file contents to json format'.format(self.pack_meta_file))

        return False
Check if pack-metadata.json structure is json parse-able
Check if pack-metadata.json structure is json parse-able
Check if pack - metadata . json structure is json parse - able
def _is_pack_meta_file_structure_valid(self):
        try:
            pack_meta_file_content = self._read_file_content(self.pack_meta_file)
            if pack_meta_file_content and json.loads(pack_meta_file_content):
                return True
        except (ValueError, TypeError):
            self._add_error('Could not parse {} file contents to json format'.format(self.pack_meta_file))
        return False
def _is_pack_meta_file_structure_valid ( self ) : try : pack_meta_file_content = self . _read_file_content ( self . pack_meta_file ) if pack_meta_file_content and json . loads ( pack_meta_file_content ) : return True except ( ValueError , TypeError ) : self . _add_error ( 'Could not parse {} file contents to json format' . format ( self . pack_meta_file ) ) return False
Check if pack-metadata.json structure is json parse-able
Check if pack - metadata . json structure is json parse - able
"""Check if pack-metadata.json structure is json parse-able"""
self