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

Fix keyword decorator for top level functions and decorator parsing #210

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jamofer
Copy link

@jamofer jamofer commented Mar 23, 2019

This PR fixes the following issues related with keyword decorators:

  • Search for keyword decorator in top level functions.
  • Search for keyword decorator with relative/absolute path usage.
  • Remove single quotes on keyword definition with decorator.
import robot.api.deco
from robot.api import deco

@robot.api.deco.keyword('This works')
def this_works():
    pass

@deco.keyword(name="And this")
def and_this():
    pass

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

Successfully merging this pull request may close these issues.

None yet

1 participant