"""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, 'pywrangler.util.helper.get_param_names', 'get_param_names', False, 'from pywrangler.util.helper import get_param_names\n'), (18, 'pywrangler.util.helper.get_param_names', 'get_param_names', False, 'from pywrangler.util.helper import get_param_names\n'), (19, 'pywrangler.util.helper.get_param_names', 'get_param_names', False, 'from pywrangler.util.helper import get_param_names\n')]