From 820b61659c7eb236240667d965de9f7668f701b9 Mon Sep 17 00:00:00 2001 From: Tobias Raabe Date: Sun, 26 May 2024 23:07:44 +0200 Subject: [PATCH] Update tests for pytask v0.5. --- CHANGES.md | 3 ++- tests/test_normal_execution_w_plugin.py | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 7043be7..f507fbb 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -5,11 +5,12 @@ chronological order. Releases follow [semantic versioning](https://semver.org/) releases are available on [PyPI](https://pypi.org/project/pytask-r) and [Anaconda.org](https://anaconda.org/conda-forge/pytask-r). -## x.x.x - 2024-xx-xx +## 0.4.2 - 2024-xx-xx - {pull}`50` uses pixi to install R and uses uuid4 to generate more robust file names for serialized arguments. - {pull}`51` reenables testing with different Python versions. +- {pull}`54` updates tests for pytask v0.5. ## 0.4.1 - 2024-04-20 diff --git a/tests/test_normal_execution_w_plugin.py b/tests/test_normal_execution_w_plugin.py index 3c8813f..d14f598 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_example( + 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):