99from pytask import Task
1010from pytask import build
1111from pytask import cli
12- from pytask_latex .execute import pytask_execute_task_setup
1312
13+ from pytask_latex .execute import pytask_execute_task_setup
1414from tests .conftest import TEST_RESOURCES
1515from tests .conftest import needs_latexmk
1616from tests .conftest import skip_on_github_actions_with_win
1717
1818
19- @pytest .mark .unit ()
19+ @pytest .mark .unit
2020def test_pytask_execute_task_setup (monkeypatch ):
2121 """Make sure that the task setup raises errors."""
2222 # Act like latexmk is installed since we do not test this.
@@ -33,7 +33,7 @@ def test_pytask_execute_task_setup(monkeypatch):
3333
3434@needs_latexmk
3535@skip_on_github_actions_with_win
36- @pytest .mark .end_to_end ()
36+ @pytest .mark .end_to_end
3737def test_compile_latex_document (runner , tmp_path ):
3838 """Test simple compilation."""
3939 task_source = """
@@ -59,7 +59,7 @@ def task_compile_document():
5959
6060@needs_latexmk
6161@skip_on_github_actions_with_win
62- @pytest .mark .end_to_end ()
62+ @pytest .mark .end_to_end
6363def test_compile_latex_document_w_relative (runner , tmp_path ):
6464 """Test simple compilation."""
6565 task_source = f"""
@@ -91,7 +91,7 @@ def task_compile_document():
9191
9292@needs_latexmk
9393@skip_on_github_actions_with_win
94- @pytest .mark .end_to_end ()
94+ @pytest .mark .end_to_end
9595def test_compile_latex_document_to_different_name (runner , tmp_path ):
9696 """Compile a LaTeX document where source and output name differ."""
9797 task_source = """
@@ -118,7 +118,7 @@ def task_compile_document():
118118
119119@needs_latexmk
120120@skip_on_github_actions_with_win
121- @pytest .mark .end_to_end ()
121+ @pytest .mark .end_to_end
122122def test_compile_w_bibliography (runner , tmp_path ):
123123 """Compile a LaTeX document with bibliography."""
124124 task_source = """
@@ -158,7 +158,7 @@ def task_compile_document():
158158
159159@needs_latexmk
160160@skip_on_github_actions_with_win
161- @pytest .mark .end_to_end ()
161+ @pytest .mark .end_to_end
162162def test_raise_error_if_latexmk_is_not_found (tmp_path , monkeypatch ):
163163 task_source = """
164164 from pytask import mark
@@ -192,7 +192,7 @@ def task_compile_document():
192192
193193@needs_latexmk
194194@skip_on_github_actions_with_win
195- @pytest .mark .end_to_end ()
195+ @pytest .mark .end_to_end
196196def test_compile_latex_document_w_xelatex (runner , tmp_path ):
197197 task_source = """
198198 from pytask import mark
@@ -227,7 +227,7 @@ def task_compile_document():
227227
228228@needs_latexmk
229229@skip_on_github_actions_with_win
230- @pytest .mark .end_to_end ()
230+ @pytest .mark .end_to_end
231231def test_compile_latex_document_w_two_dependencies (runner , tmp_path ):
232232 task_source = """
233233 from pytask import mark
@@ -255,7 +255,7 @@ def task_compile_document(path: Path = Path("in.txt")):
255255
256256@needs_latexmk
257257@skip_on_github_actions_with_win
258- @pytest .mark .end_to_end ()
258+ @pytest .mark .end_to_end
259259def test_fail_because_script_is_not_latex (tmp_path ):
260260 task_source = """
261261 from pytask import mark
@@ -283,7 +283,7 @@ def task_compile_document(path: Path = Path("in.txt")):
283283
284284@needs_latexmk
285285@skip_on_github_actions_with_win
286- @pytest .mark .end_to_end ()
286+ @pytest .mark .end_to_end
287287def test_compile_document_to_out_if_document_has_relative_resources (tmp_path ):
288288 """Test that motivates the ``"--cd"`` flag.
289289
@@ -326,7 +326,7 @@ def task_compile_document(path: Path = Path("resources/content.tex")):
326326
327327@needs_latexmk
328328@skip_on_github_actions_with_win
329- @pytest .mark .end_to_end ()
329+ @pytest .mark .end_to_end
330330def test_compile_document_w_wrong_flag (tmp_path ):
331331 """Test that wrong flags raise errors."""
332332 tmp_path .joinpath ("sub" ).mkdir (parents = True )
@@ -361,7 +361,7 @@ def task_compile_document():
361361
362362
363363@needs_latexmk
364- @pytest .mark .end_to_end ()
364+ @pytest .mark .end_to_end
365365def test_compile_document_w_image (runner , tmp_path ):
366366 task_source = f"""
367367 from pytask import Product
@@ -397,7 +397,7 @@ def task_compile_document():
397397
398398@needs_latexmk
399399@skip_on_github_actions_with_win
400- @pytest .mark .end_to_end ()
400+ @pytest .mark .end_to_end
401401def test_compile_latex_document_w_multiple_marks (runner , tmp_path ):
402402 """Test simple compilation."""
403403 task_source = """
@@ -425,7 +425,7 @@ def task_compile_document():
425425
426426@needs_latexmk
427427@skip_on_github_actions_with_win
428- @pytest .mark .end_to_end ()
428+ @pytest .mark .end_to_end
429429def test_compile_latex_document_with_wrong_extension (runner , tmp_path ):
430430 """Test simple compilation."""
431431 task_source = """
@@ -452,7 +452,7 @@ def task_compile_document():
452452
453453@needs_latexmk
454454@skip_on_github_actions_with_win
455- @pytest .mark .end_to_end ()
455+ @pytest .mark .end_to_end
456456def test_compile_w_bibliography_and_keep_bbl (runner , tmp_path ):
457457 """Compile a LaTeX document with bibliography."""
458458 task_source = """
@@ -496,7 +496,7 @@ def task_compile_document(
496496
497497@needs_latexmk
498498@skip_on_github_actions_with_win
499- @pytest .mark .end_to_end ()
499+ @pytest .mark .end_to_end
500500@pytest .mark .parametrize (
501501 ("step" , "message" ),
502502 [
@@ -536,7 +536,7 @@ def task_compile_document():
536536
537537@needs_latexmk
538538@skip_on_github_actions_with_win
539- @pytest .mark .end_to_end ()
539+ @pytest .mark .end_to_end
540540def test_compile_latex_document_with_task_decorator (runner , tmp_path ):
541541 """Test simple compilation."""
542542 task_source = """
@@ -563,7 +563,7 @@ def compile_document():
563563
564564@needs_latexmk
565565@skip_on_github_actions_with_win
566- @pytest .mark .end_to_end ()
566+ @pytest .mark .end_to_end
567567def test_use_task_without_path (tmp_path ):
568568 task_source = """
569569 import pytask
@@ -591,7 +591,7 @@ def test_use_task_without_path(tmp_path):
591591
592592@needs_latexmk
593593@skip_on_github_actions_with_win
594- @pytest .mark .end_to_end ()
594+ @pytest .mark .end_to_end
595595def test_collect_latex_document_with_product_from_another_task (runner , tmp_path ):
596596 """Test simple compilation."""
597597 task_source = """
0 commit comments