-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test that exact match wins over embedded matches regardless search or…
…der. To some extend related to #4454.
- Loading branch information
1 parent
b1fbfa2
commit 63f06ea
Showing
8 changed files
with
40 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
atest/testdata/standard_libraries/builtin/set_library_search_order/TestLibrary.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
class TestLibrary: | ||
|
||
def __init__(self, name='TestLibrary'): | ||
self.name = name | ||
|
||
def get_name(self): | ||
return self.name | ||
|
||
get_library_name = get_name | ||
|
||
def no_operation(self): | ||
raise AssertionError("No operation used in %s!" % self.name) | ||
return self.name | ||
|
13 changes: 13 additions & 0 deletions
13
atest/testdata/standard_libraries/builtin/set_library_search_order/embedded.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from robot.api.deco import keyword | ||
|
||
|
||
@keyword('No ${Ope}ration') | ||
def no_operation(ope): | ||
raise AssertionError('Should not be run due to keywords with normal ' | ||
'arguments having higher precedence.') | ||
|
||
|
||
@keyword('Get ${Name}') | ||
def get_name(name): | ||
raise AssertionError('Should not be run due to keywords with normal ' | ||
'arguments having higher precedence.') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
atest/testdata/standard_libraries/builtin/set_resource_search_order/embedded.resource
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*** Keywords *** | ||
Get ${Name:\w+} | ||
Fail Should not be run due to keywords with normal arguments having higher precedence |
2 changes: 1 addition & 1 deletion
2
atest/testdata/standard_libraries/builtin/set_resource_search_order/resource1.robot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
*** Keywords *** | ||
Get Name | ||
[Return] resource1 | ||
RETURN resource1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters