From 086205d6f55d8cf4861dcf70bd0ce64ef44b9040 Mon Sep 17 00:00:00 2001 From: Lakitna Date: Mon, 16 Mar 2026 19:30:19 +0100 Subject: [PATCH 1/3] Bumped version to 1.2.0 --- pyproject.toml | 2 +- src/CacheLibrary/__version__.py | 2 +- uv.lock | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 3df7640..1fce25d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "robotframework-cache" -version = "1.1.0" +version = "1.2.0" description = "Robot Framework libary for caching values across tests and test runs" readme = "README.md" authors = [{ name = "Sander van Beek" }] diff --git a/src/CacheLibrary/__version__.py b/src/CacheLibrary/__version__.py index 6849410..c68196d 100644 --- a/src/CacheLibrary/__version__.py +++ b/src/CacheLibrary/__version__.py @@ -1 +1 @@ -__version__ = "1.1.0" +__version__ = "1.2.0" diff --git a/uv.lock b/uv.lock index b936eea..c61972d 100644 --- a/uv.lock +++ b/uv.lock @@ -292,7 +292,7 @@ wheels = [ [[package]] name = "robotframework-cache" -version = "1.1.0" +version = "1.2.0" source = { editable = "." } dependencies = [ { name = "robotframework" }, From 9f0668efdbfc54fb42c393d4e764a51e50490b3f Mon Sep 17 00:00:00 2001 From: Lakitna Date: Mon, 16 Mar 2026 19:41:42 +0100 Subject: [PATCH 2/3] Build keyword docs --- docs/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.html b/docs/index.html index 2120a41..8f62841 100644 --- a/docs/index.html +++ b/docs/index.html @@ -6,7 +6,7 @@ From 321a04cc8fbfdedd012df41951a9c95ce8516d6c Mon Sep 17 00:00:00 2001 From: Lakitna Date: Mon, 16 Mar 2026 21:30:31 +0100 Subject: [PATCH 3/3] Embracing dangling state to make tests more stable --- .../run-keyword-and-cache-output.robot | 33 ++++++++++--------- test/integration/run-multi-value.robot | 13 ++++---- test/integration/run.robot | 11 +++---- 3 files changed, 28 insertions(+), 29 deletions(-) diff --git a/test/integration/run-keyword-and-cache-output.robot b/test/integration/run-keyword-and-cache-output.robot index 41d27b4..c713e4c 100644 --- a/test/integration/run-keyword-and-cache-output.robot +++ b/test/integration/run-keyword-and-cache-output.robot @@ -1,42 +1,43 @@ *** Settings *** -Library Process -Library FakerLibrary -Library pabot.PabotLib -Library CacheLibrary +Library Process +Library FakerLibrary +Library pabot.PabotLib +Library CacheLibrary # Clean up the random data created by these tests -Suite Setup Run Only Once Cache Reset -Suite Teardown Run On Last Process Cache Reset +Suite Setup Run Only Once Cache Reset + *** Test Cases *** Only runs the keyword once when called twice with arg - ${result} = Run Keyword And Cache Output Add One To Number 1 + ${result} = Run Keyword And Cache Output Add One To Number 1 Should Be Equal ${result} ${2} - ${result} = Run Keyword And Cache Output Add One To Number 1 + ${result} = Run Keyword And Cache Output Add One To Number 1 Should Be Equal ${result} ${2} Only runs the keyword once when called twice with kwarg - ${result} = Run Keyword And Cache Output Add One To Number input=1 + ${result} = Run Keyword And Cache Output Add One To Number input=1 Should Be Equal ${result} ${2} - ${result} = Run Keyword And Cache Output Add One To Number input=1 + ${result} = Run Keyword And Cache Output Add One To Number input=1 Should Be Equal ${result} ${2} Only runs the keyword again when args change - ${result} = Run Keyword And Cache Output Add One To Number 1 + ${result} = Run Keyword And Cache Output Add One To Number 1 Should Be Equal ${result} ${2} - ${result} = Run Keyword And Cache Output Add One To Number 2 + ${result} = Run Keyword And Cache Output Add One To Number 2 Should Be Equal ${result} ${3} Only runs the keyword once when called twice without arg - ${first_result} = Run Keyword And Cache Output FakerLibrary.Random Number - ${second_result} = Run Keyword And Cache Output FakerLibrary.Random Number + ${first_result} = Run Keyword And Cache Output FakerLibrary.Random Number + ${second_result} = Run Keyword And Cache Output FakerLibrary.Random Number Should Be Equal ${second_result} ${first_result} + *** Keywords *** Add One To Number [Arguments] ${input} - ${output} = Evaluate int(${input}) + int(1) - RETURN ${output} + ${output} = Evaluate int(${input}) + int(1) + RETURN ${output} diff --git a/test/integration/run-multi-value.robot b/test/integration/run-multi-value.robot index 3335f92..fb65603 100644 --- a/test/integration/run-multi-value.robot +++ b/test/integration/run-multi-value.robot @@ -1,13 +1,12 @@ *** Settings *** -Library Collections -Library Process -Library FakerLibrary -Library pabot.PabotLib -Library CacheLibrary +Library Collections +Library Process +Library FakerLibrary +Library pabot.PabotLib +Library CacheLibrary # Clean up the data created by these tests -Suite Setup Run Only Once Cache Reset -Suite Teardown Run On Last Process Cache Reset +Suite Setup Run Only Once Cache Reset *** Variables *** diff --git a/test/integration/run.robot b/test/integration/run.robot index 486785c..4f28d63 100644 --- a/test/integration/run.robot +++ b/test/integration/run.robot @@ -1,12 +1,11 @@ *** Settings *** -Library Process -Library FakerLibrary -Library pabot.PabotLib -Library CacheLibrary +Library Process +Library FakerLibrary +Library pabot.PabotLib +Library CacheLibrary # Clean up the random data created by these tests -Suite Setup Run Only Once Cache Reset -Suite Teardown Run On Last Process Cache Reset +Suite Setup Run Only Once Cache Reset *** Variables ***