Skip to content

Update tests for pytask v0.5. #54

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
7 changes: 4 additions & 3 deletions tests/test_normal_execution_w_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
Loading