PythonRemoteServer icon indicating copy to clipboard operation
PythonRemoteServer copied to clipboard

Problems with **kwargs

Open dtougas opened this issue 7 years ago • 0 comments

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?

dtougas avatar Sep 28 '18 19:09 dtougas