Ejemplo n.º 1
0
    def test_autodoc_invalid_extra_args(self):
        def invalid_function(T, p):
            return T

        decorators.equation_docstring(self.quantity_dict,
                                      self.assumption_dict,
                                      equation='x=y',
                                      references='reference here',
                                      notes='c sharp')(invalid_function)
Ejemplo n.º 2
0
 def test_autodoc_invalid_extra_args(self):
     def invalid_function(T, p):
         return T
     decorators.equation_docstring(
         self.quantity_dict, self.assumption_dict, equation='x=y',
         references='reference here', notes='c sharp')(invalid_function)
Ejemplo n.º 3
0
 def test_autodoc_invalid_args_function(self):
     def T_from_x_y(x, y):
         return x
     decorators.equation_docstring(
         self.quantity_dict, self.assumption_dict)(T_from_x_y)
Ejemplo n.º 4
0
 def test_autodoc_invalid_no_extra_args(self):
     def invalid_function(T, p):
         return T
     decorators.equation_docstring(
         self.quantity_dict, self.assumption_dict)(invalid_function)
Ejemplo n.º 5
0
    def test_autodoc_invalid_args_function(self):
        def T_from_x_y(x, y):
            return x

        decorators.equation_docstring(self.quantity_dict,
                                      self.assumption_dict)(T_from_x_y)
Ejemplo n.º 6
0
    def test_autodoc_invalid_no_extra_args(self):
        def invalid_function(T, p):
            return T

        decorators.equation_docstring(self.quantity_dict,
                                      self.assumption_dict)(invalid_function)
Ejemplo n.º 7
0
def autodoc(**kwargs):
    return equation_docstring(quantities, assumptions, **kwargs)
Ejemplo n.º 8
0
def autodoc(**kwargs):
    return equation_docstring(quantities, assumptions, **kwargs)