From f4bc8fb7b1e612c4e5e553996dd620dc98096c43 Mon Sep 17 00:00:00 2001 From: Tobias Raabe Date: Sun, 26 May 2024 22:40:44 +0200 Subject: [PATCH 1/2] Update tests for the upcoming v0.5 release. --- tests/test_normal_execution_w_plugin.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/test_normal_execution_w_plugin.py b/tests/test_normal_execution_w_plugin.py index 3c8813f..1d71ade 100644 --- a/tests/test_normal_execution_w_plugin.py +++ b/tests/test_normal_execution_w_plugin.py @@ -22,9 +22,10 @@ def test_execution_w_varying_dependencies_products( import pytask from pathlib import Path - @pytask.mark.depends_on({dependencies}) - @pytask.mark.produces({products}) - def task_dummy(depends_on, produces): + def task_dummy( + depends_on=[Path(p) for p in {dependencies}], + produces=[Path(p) for p in {products}], + ): if isinstance(produces, dict): produces = produces.values() elif isinstance(produces, Path): From e25307d76fba7de381f46e335a1290c7281fe2ed Mon Sep 17 00:00:00 2001 From: Tobias Raabe Date: Sun, 26 May 2024 22:42:46 +0200 Subject: [PATCH 2/2] To changes. --- CHANGES.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES.md b/CHANGES.md index 6dcdad2..5b92650 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -10,6 +10,7 @@ releases are available on [PyPI](https://pypi.org/project/pytask-julia) and - {pull}`31` uses pixi to provision Julia if possible. - {pull}`32` uses trusted publishing for PyPI. - {pull}`33` uses uuid4 to generate more robust file names for serialized arguments. +- {pull}`36` updates tests for pytask v0.5. ## 0.4.0 - 2023-10-08