@@ -20,7 +20,7 @@ class Session:
20
20
pass
21
21
22
22
23
- @pytest .mark .end_to_end
23
+ @pytest .mark .end_to_end ()
24
24
@pytest .mark .parametrize ("parallel_backend" , PARALLEL_BACKENDS )
25
25
def test_parallel_execution_speedup (tmp_path , parallel_backend ):
26
26
source = """
@@ -55,7 +55,7 @@ def task_2(produces):
55
55
assert session .execution_end - session .execution_start < 10
56
56
57
57
58
- @pytest .mark .end_to_end
58
+ @pytest .mark .end_to_end ()
59
59
@pytest .mark .parametrize ("parallel_backend" , PARALLEL_BACKENDS )
60
60
def test_parallel_execution_speedup_w_cli (runner , tmp_path , parallel_backend ):
61
61
source = """
@@ -102,7 +102,7 @@ def task_2(produces):
102
102
assert end - start < 10
103
103
104
104
105
- @pytest .mark .integration
105
+ @pytest .mark .integration ()
106
106
@pytest .mark .parametrize ("parallel_backend" , PARALLEL_BACKENDS )
107
107
def test_pytask_execute_task_w_processes (parallel_backend ):
108
108
# Local function which cannot be used with multiprocessing.
@@ -142,7 +142,7 @@ def myfunc():
142
142
assert exception is None
143
143
144
144
145
- @pytest .mark .end_to_end
145
+ @pytest .mark .end_to_end ()
146
146
@pytest .mark .parametrize ("parallel_backend" , PARALLEL_BACKENDS )
147
147
def test_stop_execution_when_max_failures_is_reached (tmp_path , parallel_backend ):
148
148
source = """
@@ -171,7 +171,7 @@ def task_3(): time.sleep(3)
171
171
assert len (session .execution_reports ) == 2
172
172
173
173
174
- @pytest .mark .end_to_end
174
+ @pytest .mark .end_to_end ()
175
175
@pytest .mark .parametrize ("parallel_backend" , PARALLEL_BACKENDS )
176
176
def test_task_priorities (tmp_path , parallel_backend ):
177
177
source = """
@@ -213,7 +213,7 @@ def task_5():
213
213
assert last_task_name .endswith ("task_2" ) or last_task_name .endswith ("task_5" )
214
214
215
215
216
- @pytest .mark .end_to_end
216
+ @pytest .mark .end_to_end ()
217
217
@pytest .mark .parametrize ("parallel_backend" , PARALLEL_BACKENDS )
218
218
@pytest .mark .parametrize ("show_locals" , [True , False ])
219
219
def test_rendering_of_tracebacks_with_rich (
@@ -239,7 +239,7 @@ def task_raising_error():
239
239
assert ("[0, 1, 2, 3, 4]" in result .output ) is show_locals
240
240
241
241
242
- @pytest .mark .end_to_end
242
+ @pytest .mark .end_to_end ()
243
243
@pytest .mark .parametrize ("parallel_backend" , PARALLEL_BACKENDS )
244
244
def test_generators_are_removed_from_depends_on_produces (tmp_path , parallel_backend ):
245
245
"""Only works with pytask >=0.1.9."""
@@ -265,7 +265,7 @@ def task_example(produces):
265
265
assert session .exit_code == ExitCode .OK
266
266
267
267
268
- @pytest .mark .end_to_end
268
+ @pytest .mark .end_to_end ()
269
269
@pytest .mark .parametrize (
270
270
"parallel_backend" ,
271
271
# Capturing warnings is not thread-safe.
0 commit comments