File tree Expand file tree Collapse file tree 4 files changed +14
-4
lines changed Expand file tree Collapse file tree 4 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -6,4 +6,4 @@ Provide a description and/or bullet points to describe the changes in this PR.
6
6
7
7
- [ ] Reference issues which can be closed due to this PR with "Closes #x".
8
8
- [ ] Review whether the documentation needs to be updated.
9
- - [ ] Document PR in docs/changes.rst .
9
+ - [ ] Document PR in docs/source/ changes.md .
Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ releases are available on [PyPI](https://pypi.org/project/pytask) and
10
10
- {pull}` 617 ` fixes an interaction with provisional nodes and ` @mark.persist ` .
11
11
- {pull}` 618 ` ensures that ` root_dir ` of ` DirectoryNode ` is created before the task is
12
12
executed.
13
+ - {pull}` 619 ` makes coiled an optional import for tests. Thanks to {user}` erooke ` .
14
+ - {pull}` 620 ` makes tests more flexible about their location. Thanks to {user}` erooke ` .
15
+ - {pull}` 621 ` fixes the pull requests template.
13
16
14
17
## 0.5.0 - 2024-05-26
15
18
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ def test_format_task_id(
153
153
PathNode .from_path (_ROOT .joinpath ("src/module.py" )),
154
154
[_ROOT .joinpath ("alternative_src" )],
155
155
does_not_raise (),
156
- Text ("pytask /src/module.py" ),
156
+ Text (f" { _ROOT . name } /src/module.py" ),
157
157
id = "Common path found for PathNode not in 'paths' and 'paths'" ,
158
158
),
159
159
pytest .param (
@@ -174,7 +174,7 @@ def test_format_task_id(
174
174
PythonNode (name = _ROOT .as_posix () + "/task_a.py::task_a::a" , value = None ),
175
175
[_ROOT ],
176
176
does_not_raise (),
177
- Text ("pytask /task_a.py::task_a::a" ),
177
+ Text (f" { _ROOT . name } /task_a.py::task_a::a" ),
178
178
id = "PythonNode with automatically assigned name" ,
179
179
),
180
180
],
Original file line number Diff line number Diff line change 4
4
import textwrap
5
5
from contextlib import ExitStack as does_not_raise # noqa: N813
6
6
7
- import coiled
8
7
import pytest
9
8
from _pytask .shared import convert_to_enum
10
9
from _pytask .shared import find_duplicates
@@ -76,5 +75,13 @@ def wrapper():
76
75
decorated = decorator (task )
77
76
assert unwrap_task_function (decorated ) is task
78
77
78
+
79
+ @pytest .mark .unit ()
80
+ def test_no_unwrap_coiled ():
81
+ coiled = pytest .importorskip ("coiled" )
82
+
83
+ def task ():
84
+ pass
85
+
79
86
coiled_decorated = coiled .function ()(task )
80
87
assert unwrap_task_function (coiled_decorated ) is coiled_decorated
You can’t perform that action at this time.
0 commit comments