Exemple #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"
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"
Exemple #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"
Exemple #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"
Exemple #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"
Exemple #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"
Exemple #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"