Esempio n. 1
0
 def get_function_def(self):
     """
         Gets the function definition for the function test. Returns None if no definition is found.
     """
     fdefs = FunctionDefinitions(point_definitions=self.point_definitions,
                                 function_definitions_path=self.func_def_path)
     return fdefs.function_for_id(self.function_id)
Esempio n. 2
0
 def get_function_def(self):
     """
         Gets the function definition for the function test. Returns None if no definition is found.
     """
     fdefs = FunctionDefinitions(
         point_definitions=self.point_definitions,
         function_definitions_path=self.func_def_path)
     return fdefs.function_for_id(self.function_id)
def test_function_definitions():
    point_definitions = PointDefinitions(point_definitions_path=POINT_DEFINITIONS_PATH)
    fdefs = FunctionDefinitions(point_definitions, function_definitions_path=FUNCTION_DEFINITIONS_PATH)

    fd = fdefs.function_for_id("curve")
    print(fd)

    pdef = point_definitions.get_point_named("DCHD.WinTms (out)")
    print(pdef)
    print(fdefs.step_definition_for_point(pdef))
def test_function_definitions():
    point_definitions = PointDefinitions(
        point_definitions_path=POINT_DEFINITIONS_PATH)
    fdefs = FunctionDefinitions(
        point_definitions, function_definitions_path=FUNCTION_DEFINITIONS_PATH)

    fd = fdefs.function_for_id("curve")
    print(fd)

    pdef = point_definitions.get_point_named("DCHD.WinTms (out)")
    print(pdef)
    print(fdefs.step_definition_for_point(pdef))