def test_get_metadata_partial(func): curried = functools.partial(func, some_arg=2) metadata = get_function_meta(curried) assert metadata['name'] == 'f' assert metadata['description'] == "A docstring" assert metadata['table'] == "Some more"
def test_single_input_metadata(func): metadata = get_function_meta(func) assert metadata['name'] == 'f' assert metadata['description'] == "A docstring" assert metadata['table'] == "Something about a table"
def test_get_metdata(func): metadata = get_function_meta(func) assert metadata['name'] == 'f' assert metadata['description'] == "A docstring" assert metadata['table'] == "Some more"
def test_metadata(func): metadata = get_function_meta(TransformationWrapper(func)) assert metadata['name'] == 'f' assert metadata['description'] == "A docstring" assert metadata['table'] == "Something about a table"