예제 #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"
예제 #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"
예제 #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"
예제 #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"
예제 #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"
예제 #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"
예제 #7
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"
예제 #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"