Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #7
0
def autodoc(**kwargs):
    return equation_docstring(quantities, assumptions, **kwargs)
Beispiel #8
0
def autodoc(**kwargs):
    return equation_docstring(quantities, assumptions, **kwargs)