Beispiel #1
0
def test_see_also_print():
    class Dummy(object):
        """
        See Also
        --------
        func_a, func_b
        func_c : some relationship
                 goes here
        func_d
        """
        pass

    obj = Dummy()
    s = str(FunctionDoc(obj, role='func'))
    assert(':func:`func_a`, :func:`func_b`' in s)
    assert('    some relationship' in s)
    assert(':func:`func_d`' in s)
Beispiel #2
0
 def __init__(self, obj, doc=None, config={}):
     self.use_plots = config.get('use_plots', False)
     FunctionDoc.__init__(self, obj, doc=doc, config=config)
Beispiel #3
0
 def __init__(self, obj, doc=None, config={}):
     self.use_plots = config.get('use_plots', False)
     FunctionDoc.__init__(self, obj, doc=doc, config=config)
Beispiel #4
0
 def __init__(self, obj, doc=None, config={}):
     self.load_config(config)
     FunctionDoc.__init__(self, obj, doc=doc, config=config)
 def __init__(self, obj, doc=None, config={}):
     self.load_config(config)
     FunctionDoc.__init__(self, obj, doc=doc, config=config)