11
11
from pytask import Task
12
12
from pytask import build
13
13
from pytask import cli
14
- from pytask_julia .execute import pytask_execute_task_setup
15
14
15
+ from pytask_julia .execute import pytask_execute_task_setup
16
16
from tests .conftest import ROOT
17
17
from tests .conftest import needs_julia
18
18
from tests .conftest import parametrize_parse_code_serializer_suffix
19
19
20
20
21
- @pytest .mark .unit ()
21
+ @pytest .mark .unit
22
22
def test_pytask_execute_task_setup_missing_julia (monkeypatch ):
23
23
"""Make sure that the task setup raises errors."""
24
24
# Act like julia is installed since we do not test this.
@@ -37,7 +37,7 @@ def test_pytask_execute_task_setup_missing_julia(monkeypatch):
37
37
38
38
39
39
@needs_julia
40
- @pytest .mark .end_to_end ()
40
+ @pytest .mark .end_to_end
41
41
@parametrize_parse_code_serializer_suffix
42
42
@pytest .mark .parametrize ("depends_on" , ["'in_1.txt'" , "['in_1.txt', 'in_2.txt']" ])
43
43
def test_run_jl_script ( # noqa: PLR0913
@@ -86,7 +86,7 @@ def task_run_jl_script():
86
86
87
87
88
88
@needs_julia
89
- @pytest .mark .end_to_end ()
89
+ @pytest .mark .end_to_end
90
90
@parametrize_parse_code_serializer_suffix
91
91
def test_run_jl_script_w_task_decorator (
92
92
runner , tmp_path , parse_config_code , serializer , suffix
@@ -123,7 +123,7 @@ def run_jl_script():
123
123
124
124
125
125
@needs_julia
126
- @pytest .mark .end_to_end ()
126
+ @pytest .mark .end_to_end
127
127
@parametrize_parse_code_serializer_suffix
128
128
def test_raise_error_if_julia_is_not_found (
129
129
tmp_path ,
@@ -169,7 +169,7 @@ def task_run_jl_script():
169
169
170
170
171
171
@needs_julia
172
- @pytest .mark .end_to_end ()
172
+ @pytest .mark .end_to_end
173
173
@parametrize_parse_code_serializer_suffix
174
174
def test_run_jl_script_w_wrong_cmd_option (
175
175
runner ,
@@ -208,7 +208,7 @@ def task_run_jl_script():
208
208
209
209
210
210
@needs_julia
211
- @pytest .mark .end_to_end ()
211
+ @pytest .mark .end_to_end
212
212
@pytest .mark .parametrize ("n_threads" , [2 , 3 ])
213
213
@parametrize_parse_code_serializer_suffix
214
214
def test_check_passing_cmd_line_options ( # noqa: PLR0913
@@ -249,7 +249,7 @@ def task_run_jl_script():
249
249
250
250
251
251
@needs_julia
252
- @pytest .mark .end_to_end ()
252
+ @pytest .mark .end_to_end
253
253
@pytest .mark .xfail (
254
254
condition = sys .platform == "win32" and os .environ .get ("CI" ) == "true" ,
255
255
reason = "Test folder and repo are on different drives causing relpath to fail." ,
@@ -303,7 +303,7 @@ def task_run_jl_script():
303
303
304
304
305
305
@needs_julia
306
- @pytest .mark .end_to_end ()
306
+ @pytest .mark .end_to_end
307
307
@pytest .mark .xfail (
308
308
condition = sys .platform == "win32" and os .environ .get ("CI" ) == "true" ,
309
309
reason = "Test folder and repo are on different drives causing relpath to fail." ,
@@ -349,7 +349,7 @@ def task_run_jl_script():
349
349
350
350
351
351
@needs_julia
352
- @pytest .mark .end_to_end ()
352
+ @pytest .mark .end_to_end
353
353
def test_run_jl_script_w_custom_serializer (runner , tmp_path ):
354
354
task_source = f"""
355
355
import pytask
@@ -382,7 +382,7 @@ def task_run_jl_script():
382
382
383
383
384
384
@needs_julia
385
- @pytest .mark .end_to_end ()
385
+ @pytest .mark .end_to_end
386
386
def test_run_jl_script_fails_w_multiple_markers (runner , tmp_path ):
387
387
task_source = """
388
388
import pytask
0 commit comments