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

Problems with **kwargs #52

Open
dtougas opened this issue Sep 28, 2018 · 0 comments
Open

Problems with **kwargs #52

dtougas opened this issue Sep 28, 2018 · 0 comments

Comments

@dtougas
Copy link

dtougas commented Sep 28, 2018

I am relatively new to Robot Framework, so maybe this is just a newbie error... I have a library method like this:

class MyLibrary:
    def do_something(self, *args, **kwargs):
        stuff_happens()

This library is getting launched remotely, and for the most part everything is working great, except for the kwargs. In my .robot file, if I call it like this:

My test
    Do something  x  y  z  my_arg=1

What I am seeing is that the my_arg=1 is getting passed in wholesale to args as a string, rather than as a k/v pair in kwargs. Am I doing something wrong here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant