12
12
from pytask import Task
13
13
from pytask import build
14
14
from pytask import cli
15
+
15
16
from pytask_stata .config import STATA_COMMANDS
16
17
from pytask_stata .execute import pytask_execute_task_setup
17
-
18
18
from tests .conftest import needs_stata
19
19
20
20
21
- @pytest .mark .unit ()
21
+ @pytest .mark .unit
22
22
@pytest .mark .parametrize (
23
23
("stata" , "expectation" ),
24
24
[(executable , does_not_raise ()) for executable in STATA_COMMANDS ]
@@ -42,7 +42,7 @@ def test_pytask_execute_task_setup_raise_error(stata, platform, expectation):
42
42
43
43
44
44
@needs_stata
45
- @pytest .mark .end_to_end ()
45
+ @pytest .mark .end_to_end
46
46
def test_run_do_file (runner , tmp_path ):
47
47
task_source = """
48
48
import pytask
@@ -72,7 +72,7 @@ def task_run_do_file():
72
72
73
73
74
74
@needs_stata
75
- @pytest .mark .end_to_end ()
75
+ @pytest .mark .end_to_end
76
76
def test_run_do_file_w_task_decorator (runner , tmp_path ):
77
77
task_source = """
78
78
import pytask
@@ -102,7 +102,7 @@ def run_do_file():
102
102
assert tmp_path .joinpath ("script.log" ).exists ()
103
103
104
104
105
- @pytest .mark .end_to_end ()
105
+ @pytest .mark .end_to_end
106
106
def test_raise_error_if_stata_is_not_found (tmp_path , monkeypatch ):
107
107
task_source = """
108
108
from pytask import mark, task
@@ -128,7 +128,7 @@ def task_run_do_file():
128
128
129
129
130
130
@needs_stata
131
- @pytest .mark .end_to_end ()
131
+ @pytest .mark .end_to_end
132
132
def test_run_do_file_w_wrong_cmd_option (runner , tmp_path ):
133
133
"""Apparently, Stata simply discards wrong cmd options."""
134
134
task_source = """
@@ -154,7 +154,7 @@ def task_run_do_file():
154
154
155
155
156
156
@needs_stata
157
- @pytest .mark .end_to_end ()
157
+ @pytest .mark .end_to_end
158
158
def test_run_do_file_by_passing_path (runner , tmp_path ):
159
159
"""Replicates example under "Command Line Arguments" in Readme."""
160
160
task_source = """
@@ -180,7 +180,7 @@ def task_run_do_file():
180
180
181
181
182
182
@needs_stata
183
- @pytest .mark .end_to_end ()
183
+ @pytest .mark .end_to_end
184
184
def test_run_do_file_fails_with_multiple_marks (runner , tmp_path ):
185
185
task_source = """
186
186
import pytask
@@ -201,7 +201,7 @@ def task_run_do_file():
201
201
202
202
203
203
@needs_stata
204
- @pytest .mark .end_to_end ()
204
+ @pytest .mark .end_to_end
205
205
def test_with_task_without_path (runner , tmp_path ):
206
206
task_source = """
207
207
import pytask
0 commit comments