Example #1
0
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"
Example #2
0
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"
Example #3
0
def test_get_metdata(func):
    metadata = get_function_meta(func)
    assert metadata['name'] == 'f'
    assert metadata['description'] == "A docstring"
    assert metadata['table'] == "Some more"
Example #4
0
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"
Example #5
0
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"
Example #6
0
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_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"
Example #8
0
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"