def load_op_handler_description(self, handler=None): """ Load the description from function signature of command op """ if handler is None: def default_handler(): """""" # Use empty __doc__ property here, which is required in extract_full_summary_from_signature handler = default_handler self.apply_doc_string(handler) return extract_full_summary_from_signature(handler)
def default_description_loader(): op = handler or self.get_op_handler( operation, operation_group=kwargs.get('operation_group')) self._apply_doc_string(op, kwargs) return extract_full_summary_from_signature(op)
def keyvault_description_loader(): op = get_op_handler() self.command_loader._apply_doc_string(op, merged_kwargs) # pylint: disable=protected-access return extract_full_summary_from_signature(op)
def _load_descriptions(): return extract_full_summary_from_signature(_get_operation())
def default_description_loader(): '''Loads handler function's description. ''' op = handler or self.get_op_handler( operation, operation_group=kwargs.get('operation_group')) return extract_full_summary_from_signature(op)
def _load_descriptions(): return extract_full_summary_from_signature(_get_operation())
def description_loader(): return extract_full_summary_from_signature( context.get_op_handler(getter_op, operation_group=kwargs.get('operation_group')))
def default_description_loader(): op = handler or self.get_op_handler(operation) self._apply_doc_string(op, kwargs) return extract_full_summary_from_signature(op)
def description_loader(): return extract_full_summary_from_signature(context.get_op_handler(getter_op))
def test_extract_summary_no_summary(self): summary = extract_full_summary_from_signature(op2) self.assertEqual(summary, '')
def test_extract_summary(self): summary = extract_full_summary_from_signature(op1) self.assertEqual(summary, 'This is the command description.')
def description_loader(): return extract_full_summary_from_signature( context.get_op_handler(getter_op))
def keyvault_description_loader(): op = get_op_handler() self.command_loader._apply_doc_string(op, merged_kwargs) # pylint: disable=protected-access return extract_full_summary_from_signature(op)