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 @@ 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/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 *** 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" },