diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 11f54d7..72b56e4 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -14,8 +14,8 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.8, 3.12] - rf-version: [5.0.1, 7.0.1] + python-version: [3.10.19, 3.14] + rf-version: [6.1.1, 7.4.1] steps: - uses: actions/checkout@v4 diff --git a/atest/run.py b/atest/run.py index 8491ca2..feb05f6 100755 --- a/atest/run.py +++ b/atest/run.py @@ -35,7 +35,7 @@ ) if rc > 250: sys.exit(rc) - process_output(output, verbose=False) + process_output(output) output = join( outdir, "lib-DynamicTypesLibrary-python-{}-robot-{}.xml".format(python_version, RF_VERSION), @@ -52,12 +52,12 @@ ) if rc > 250: sys.exit(rc) -process_output(output, verbose=False) +process_output(output) output = join(outdir, "lib-PluginApi-python-{}-robot-{}.xml".format(python_version, RF_VERSION)) rc = run(plugin_api, name="Plugin", output=output, report=None, log=None, loglevel="debug") if rc > 250: sys.exit(rc) -process_output(output, verbose=False) +process_output(output) print("\nCombining results.") library_variants.append("DynamicTypesLibrary") xml_files = [str(xml_file) for xml_file in Path(outdir).glob("*.xml")] diff --git a/src/robotlibcore/__init__.py b/src/robotlibcore/__init__.py index 3286c2d..c0b88a0 100644 --- a/src/robotlibcore/__init__.py +++ b/src/robotlibcore/__init__.py @@ -33,10 +33,10 @@ "HybridCore", "KeywordBuilder", "KeywordSpecification", - "PluginParser", - "keyword", + "Module", "NoKeywordFound", "PluginError", + "PluginParser", "PythonLibCoreException", - "Module", + "keyword", ] diff --git a/src/robotlibcore/utils/__init__.py b/src/robotlibcore/utils/__init__.py index 609b6b4..697e8a4 100644 --- a/src/robotlibcore/utils/__init__.py +++ b/src/robotlibcore/utils/__init__.py @@ -25,4 +25,4 @@ class Module: kw_args: dict -__all__ = ["Module", "NoKeywordFound", "PluginError", "PythonLibCoreException", "_translation", "_translated_keywords"] +__all__ = ["Module", "NoKeywordFound", "PluginError", "PythonLibCoreException", "_translated_keywords", "_translation"] diff --git a/utest/test_robotlibcore.py b/utest/test_robotlibcore.py index b81d982..769f3be 100644 --- a/utest/test_robotlibcore.py +++ b/utest/test_robotlibcore.py @@ -105,12 +105,11 @@ def test_library_cannot_be_class(): HybridCore([HybridLibrary]) assert str(exc_info.value) == "Libraries must be modules or instances, got class 'HybridLibrary' instead." + def test_get_library_attr(): class TestClass(HybridCore): def __init__(self): - self.a = self.b *2 - super().__init__() + self.a = self.b * 2 with pytest.raises(AttributeError): TestClass() -