9
9
from pytask import Task
10
10
from pytask import build
11
11
from pytask import cli
12
- from pytask_r .execute import pytask_execute_task_setup
13
12
13
+ from pytask_r .execute import pytask_execute_task_setup
14
14
from tests .conftest import needs_rscript
15
15
from tests .conftest import parametrize_parse_code_serializer_suffix
16
16
17
17
18
- @pytest .mark .unit ()
18
+ @pytest .mark .unit
19
19
def test_pytask_execute_task_setup (monkeypatch ):
20
20
"""Make sure that the task setup raises errors."""
21
21
# Act like r is installed since we do not test this.
@@ -33,7 +33,7 @@ def test_pytask_execute_task_setup(monkeypatch):
33
33
34
34
35
35
@needs_rscript
36
- @pytest .mark .end_to_end ()
36
+ @pytest .mark .end_to_end
37
37
@parametrize_parse_code_serializer_suffix
38
38
@pytest .mark .parametrize ("depends_on" , ["'in_1.txt'" , "['in_1.txt', 'in_2.txt']" ])
39
39
def test_run_r_script ( # noqa: PLR0913
@@ -70,7 +70,7 @@ def task_run_r_script(produces = Path("out.txt")): ...
70
70
71
71
72
72
@needs_rscript
73
- @pytest .mark .end_to_end ()
73
+ @pytest .mark .end_to_end
74
74
@parametrize_parse_code_serializer_suffix
75
75
def test_run_r_script_w_task_decorator (
76
76
runner , tmp_path , parse_config_code , serializer , suffix
@@ -100,7 +100,7 @@ def run_r_script(): ...
100
100
101
101
102
102
@needs_rscript
103
- @pytest .mark .end_to_end ()
103
+ @pytest .mark .end_to_end
104
104
@parametrize_parse_code_serializer_suffix
105
105
def test_raise_error_if_rscript_is_not_found (
106
106
tmp_path , monkeypatch , parse_config_code , serializer , suffix
@@ -132,7 +132,7 @@ def task_run_r_script(): ...
132
132
133
133
134
134
@needs_rscript
135
- @pytest .mark .end_to_end ()
135
+ @pytest .mark .end_to_end
136
136
@parametrize_parse_code_serializer_suffix
137
137
def test_run_r_script_w_saving_workspace (
138
138
runner , tmp_path , parse_config_code , serializer , suffix
@@ -167,7 +167,7 @@ def task_run_r_script(): ...
167
167
168
168
169
169
@needs_rscript
170
- @pytest .mark .end_to_end ()
170
+ @pytest .mark .end_to_end
171
171
@parametrize_parse_code_serializer_suffix
172
172
def test_run_r_script_w_wrong_cmd_option (
173
173
runner , tmp_path , parse_config_code , serializer , suffix
@@ -202,7 +202,7 @@ def task_run_r_script(): ...
202
202
203
203
204
204
@needs_rscript
205
- @pytest .mark .end_to_end ()
205
+ @pytest .mark .end_to_end
206
206
def test_run_r_script_w_custom_serializer (runner , tmp_path ):
207
207
task_source = """
208
208
import pytask
@@ -232,7 +232,7 @@ def task_run_r_script(): ...
232
232
233
233
234
234
@needs_rscript
235
- @pytest .mark .end_to_end ()
235
+ @pytest .mark .end_to_end
236
236
def test_run_r_script_fails_w_multiple_markers (runner , tmp_path ):
237
237
task_source = """
238
238
import pytask
@@ -252,7 +252,7 @@ def task_run_r_script(): ...
252
252
253
253
254
254
@needs_rscript
255
- @pytest .mark .end_to_end ()
255
+ @pytest .mark .end_to_end
256
256
def test_run_r_script_with_capital_extension (runner , tmp_path ):
257
257
task_source = """
258
258
import pytask
@@ -280,7 +280,7 @@ def task_run_r_script(): ...
280
280
281
281
282
282
@needs_rscript
283
- @pytest .mark .end_to_end ()
283
+ @pytest .mark .end_to_end
284
284
@parametrize_parse_code_serializer_suffix
285
285
def test_run_r_script_w_nested_inputs (
286
286
runner , tmp_path , parse_config_code , serializer , suffix
0 commit comments