Skip to content

Commit

Permalink
Merge pull request #2622 from fvarose/fix_keyword_remover_usage_error
Browse files Browse the repository at this point in the history
Fix keyword remover usage error
  • Loading branch information
pekkaklarck committed Jun 20, 2017
2 parents a3367ff + 06b8a8f commit 87a2ce2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion atest/robot/cli/rebot/invalid_usage.robot
Expand Up @@ -43,7 +43,7 @@ Invalid --TagStatLink
... --tagstatlink a:b:c --TagStatLink less_than_3x_:

Invalid --RemoveKeywords
Invalid value for option '--removekeywords'. Expected 'ALL', 'PASSED', 'NAME:<pattern>', 'FOR', or 'WUKS' but got 'Invalid'.
Invalid value for option '--removekeywords'. Expected 'ALL', 'PASSED', 'NAME:<pattern>', 'TAG:<pattern>', 'FOR', or 'WUKS' but got 'Invalid'.
... --removekeywords wuks --removek name:xxx --RemoveKeywords Invalid

*** Keywords ***
Expand Down
2 changes: 1 addition & 1 deletion atest/robot/cli/runner/invalid_usage.robot
Expand Up @@ -31,4 +31,4 @@ Invalid --TagStatLink

Invalid --RemoveKeywords
--removekeywords wuks --removek name:xxx --RemoveKeywords Invalid tests.txt
... Invalid value for option '--removekeywords'. Expected 'ALL', 'PASSED', 'NAME:<pattern>', 'FOR', or 'WUKS' but got 'Invalid'.
... Invalid value for option '--removekeywords'. Expected 'ALL', 'PASSED', 'NAME:<pattern>', 'TAG:<pattern>', 'FOR', or 'WUKS' but got 'Invalid'.
4 changes: 2 additions & 2 deletions src/robot/result/keywordremover.py
Expand Up @@ -30,8 +30,8 @@ def KeywordRemover(how):
'FOR': ForLoopItemsRemover,
'WUKS': WaitUntilKeywordSucceedsRemover}[upper]()
except KeyError:
raise DataError("Expected 'ALL', 'PASSED', 'NAME:<pattern>', 'FOR', "
"or 'WUKS' but got '%s'." % how)
raise DataError("Expected 'ALL', 'PASSED', 'NAME:<pattern>', 'TAG:<pattern>', "
"'FOR', or 'WUKS' but got '%s'." % how)


class _KeywordRemover(SuiteVisitor):
Expand Down

0 comments on commit 87a2ce2

Please sign in to comment.