Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions atest/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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")]
Expand Down
6 changes: 3 additions & 3 deletions src/robotlibcore/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
"HybridCore",
"KeywordBuilder",
"KeywordSpecification",
"PluginParser",
"keyword",
"Module",
"NoKeywordFound",
"PluginError",
"PluginParser",
"PythonLibCoreException",
"Module",
"keyword",
]
2 changes: 1 addition & 1 deletion src/robotlibcore/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
5 changes: 2 additions & 3 deletions utest/test_robotlibcore.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()