Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test(s) for ABCParse.function_kwargs #3

Open
mvinyard opened this issue Apr 9, 2023 · 0 comments
Open

Add test(s) for ABCParse.function_kwargs #3

mvinyard opened this issue Apr 9, 2023 · 0 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request testing

Comments

@mvinyard
Copy link
Owner

mvinyard commented Apr 9, 2023

Could look something like this:

import ABCParse
def test_func(arg1, arg2):
    return arg1, arg2

arg1 = "x"
arg2 = "y"

class TestClass:
    def __init__(self, arg1="x", arg2="y", arg3="z"):
        
        self.kw = ABCParse.function_kwargs(func = test_func, kwargs = locals())
        
tc = TestClass()
tc.kw
@mvinyard mvinyard added documentation Improvements or additions to documentation enhancement New feature or request testing labels Apr 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request testing
Projects
None yet
Development

No branches or pull requests

1 participant