"""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"]

[((182, 203), 'pywrangler.util.helper.get_param_names', 'get_param_names', (['func'], {}), '(func)\n', (197, 203), False, 'from pywrangler.util.helper import get_param_names\n'), ((264, 286), 'pywrangler.util.helper.get_param_names', 'get_param_names', (['func1'], {}), '(func1)\n', (279, 286), False, 'from pywrangler.util.helper import get_param_names\n'), ((317, 346), 'pywrangler.util.helper.get_param_names', 'get_param_names', (['func1', "['a']"], {}), "(func1, ['a'])\n", (332, 346), False, 'from pywrangler.util.helper import get_param_names\n')]