Skip to content

Commit

Permalink
mylib shared
Browse files Browse the repository at this point in the history
  • Loading branch information
mkorpela committed Nov 29, 2024
1 parent 105f9d3 commit b4883ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/mylib.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class mylib(object):
ROBOT_LIBRARY_SCOPE = "TEST"

def __init__(self):
self.round = 0
def __init__(self, round=0):
self.round = round

def mykeyword(self):
self.round += 1
Expand Down
4 changes: 2 additions & 2 deletions tests/test_pabotlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ def runned(*args):
def test_shared_library_with_args(self):
try:
self._create_ctx() # Set up Robot Framework context
lib = SharedLibrary("Process", ["some_arg"])
lib = SharedLibrary("mylib", ["2"])
self.assertIsNotNone(lib)
lib._remote = None
lib._lib.run_keyword("some_keyword", ["arg"], {})
lib._lib.run_keyword("mykeyword", ["arg"], {})
except Exception as e:
self.fail(f"SharedLibrary initialization failed: {str(e)}")

Expand Down

0 comments on commit b4883ab

Please sign in to comment.