From b4883ab01ddf068911470ce3b72793b8bcffe279 Mon Sep 17 00:00:00 2001 From: Mikko Korpela Date: Fri, 29 Nov 2024 21:29:17 +0200 Subject: [PATCH] mylib shared --- tests/mylib.py | 4 ++-- tests/test_pabotlib.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/mylib.py b/tests/mylib.py index 29d54820..ab509e70 100644 --- a/tests/mylib.py +++ b/tests/mylib.py @@ -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 diff --git a/tests/test_pabotlib.py b/tests/test_pabotlib.py index d9eef3d5..ddbf92cc 100644 --- a/tests/test_pabotlib.py +++ b/tests/test_pabotlib.py @@ -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)}")