Skip to content

Commit 91da524

Browse files
committed
Improve test
1 parent 352fab7 commit 91da524

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

atest/plugin_api/MyPluginBase.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55

66
class MyPluginBase(BaseClass):
77

8+
def __init__(self, arg):
9+
self.arg = int(arg)
10+
811
@keyword
912
def base_plugin_keyword(self):
10-
return "40"
13+
return 40 + self.arg

atest/plugin_api/plugin_api.robot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ Plugin Test
77
Should Be Equal ${value} ${2}
88

99
Plugins With Base Class
10-
Import Library ${CURDIR}/PluginWithBaseLib.py plugins=${CURDIR}/MyPluginBase.py
10+
Import Library ${CURDIR}/PluginWithBaseLib.py plugins=${CURDIR}/MyPluginBase.py;11
1111
${value} = Base Plugin Keyword
12-
Should Be Equal ${value} 40
12+
Should Be Equal ${value} ${51}
1313
${value} = Base Keyword
1414
Should Be Equal ${value} 42
1515

0 commit comments

Comments
 (0)