"""This module contains tests for the helper module.

"""

from pywrangler.util.helper import get_param_names


def test_get_param_names():

    def func():
        pass

    assert get_param_names(func) == []

    def func1(a, b=4, c=6):
        pass

    assert get_param_names(func1) == ["a", "b", "c"]
    assert get_param_names(func1, ["a"]) == ["b", "c"]

[((13, 11, 13, 32), 'pywrangler.util.helper.get_param_names', 'get_param_names', ({(13, 27, 13, 31): 'func'}, {}), '(func)', False, 'from pywrangler.util.helper import get_param_names\n'), ((18, 11, 18, 33), 'pywrangler.util.helper.get_param_names', 'get_param_names', ({(18, 27, 18, 32): 'func1'}, {}), '(func1)', False, 'from pywrangler.util.helper import get_param_names\n'), ((19, 11, 19, 40), 'pywrangler.util.helper.get_param_names', 'get_param_names', ({(19, 27, 19, 32): 'func1', (19, 34, 19, 39): "['a']"}, {}), "(func1, ['a'])", False, 'from pywrangler.util.helper import get_param_names\n')]