Skip to content

Commit 2c8b6f4

Browse files
authored
Update tests for pytask v0.5. (#54)
1 parent a8ba51a commit 2c8b6f4

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

CHANGES.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ chronological order. Releases follow [semantic versioning](https://semver.org/)
55
releases are available on [PyPI](https://pypi.org/project/pytask-r) and
66
[Anaconda.org](https://anaconda.org/conda-forge/pytask-r).
77

8-
## x.x.x - 2024-xx-xx
8+
## 0.4.2 - 2024-xx-xx
99

1010
- {pull}`50` uses pixi to install R and uses uuid4 to generate more robust file names
1111
for serialized arguments.
1212
- {pull}`51` reenables testing with different Python versions.
13+
- {pull}`54` updates tests for pytask v0.5.
1314

1415
## 0.4.1 - 2024-04-20
1516

tests/test_normal_execution_w_plugin.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ def test_execution_w_varying_dependencies_products(
2222
import pytask
2323
from pathlib import Path
2424
25-
@pytask.mark.depends_on({dependencies})
26-
@pytask.mark.produces({products})
27-
def task_dummy(depends_on, produces):
25+
def task_example(
26+
depends_on=[Path(p) for p in {dependencies}],
27+
produces=[Path(p) for p in {products}],
28+
):
2829
if isinstance(produces, dict):
2930
produces = produces.values()
3031
elif isinstance(produces, Path):

0 commit comments

Comments
 (0)