def test_arguments():
    def function(argument1, argument2):
        pass

    assert tuple(hug.introspect.arguments(function_with_kwargs)) == ('argument1', )
    assert tuple(hug.introspect.arguments(function_with_args)) == ('argument1', )
    assert tuple(hug.introspect.arguments(function_with_neither)) == ('argument1', 'argument2')
    assert tuple(hug.introspect.arguments(function_with_both)) == ('argument1', 'argument2', 'argument3')
Test to ensure hug introspection can correctly pull out arguments from a function definition
dataset/ETHPy150Open timothycrosley/hug/tests/test_introspect.py/test_arguments