1212from pytask import Task
1313from pytask import build
1414from pytask import cli
15+
1516from pytask_stata .config import STATA_COMMANDS
1617from pytask_stata .execute import pytask_execute_task_setup
17-
1818from tests .conftest import needs_stata
1919
2020
21- @pytest .mark .unit ()
21+ @pytest .mark .unit
2222@pytest .mark .parametrize (
2323 ("stata" , "expectation" ),
2424 [(executable , does_not_raise ()) for executable in STATA_COMMANDS ]
@@ -42,7 +42,7 @@ def test_pytask_execute_task_setup_raise_error(stata, platform, expectation):
4242
4343
4444@needs_stata
45- @pytest .mark .end_to_end ()
45+ @pytest .mark .end_to_end
4646def test_run_do_file (runner , tmp_path ):
4747 task_source = """
4848 import pytask
@@ -72,7 +72,7 @@ def task_run_do_file():
7272
7373
7474@needs_stata
75- @pytest .mark .end_to_end ()
75+ @pytest .mark .end_to_end
7676def test_run_do_file_w_task_decorator (runner , tmp_path ):
7777 task_source = """
7878 import pytask
@@ -102,7 +102,7 @@ def run_do_file():
102102 assert tmp_path .joinpath ("script.log" ).exists ()
103103
104104
105- @pytest .mark .end_to_end ()
105+ @pytest .mark .end_to_end
106106def test_raise_error_if_stata_is_not_found (tmp_path , monkeypatch ):
107107 task_source = """
108108 from pytask import mark, task
@@ -128,7 +128,7 @@ def task_run_do_file():
128128
129129
130130@needs_stata
131- @pytest .mark .end_to_end ()
131+ @pytest .mark .end_to_end
132132def test_run_do_file_w_wrong_cmd_option (runner , tmp_path ):
133133 """Apparently, Stata simply discards wrong cmd options."""
134134 task_source = """
@@ -154,7 +154,7 @@ def task_run_do_file():
154154
155155
156156@needs_stata
157- @pytest .mark .end_to_end ()
157+ @pytest .mark .end_to_end
158158def test_run_do_file_by_passing_path (runner , tmp_path ):
159159 """Replicates example under "Command Line Arguments" in Readme."""
160160 task_source = """
@@ -180,7 +180,7 @@ def task_run_do_file():
180180
181181
182182@needs_stata
183- @pytest .mark .end_to_end ()
183+ @pytest .mark .end_to_end
184184def test_run_do_file_fails_with_multiple_marks (runner , tmp_path ):
185185 task_source = """
186186 import pytask
@@ -201,7 +201,7 @@ def task_run_do_file():
201201
202202
203203@needs_stata
204- @pytest .mark .end_to_end ()
204+ @pytest .mark .end_to_end
205205def test_with_task_without_path (runner , tmp_path ):
206206 task_source = """
207207 import pytask
0 commit comments