9
9
from pytask import Task
10
10
from pytask import build
11
11
from pytask import cli
12
- from pytask_latex .execute import pytask_execute_task_setup
13
12
13
+ from pytask_latex .execute import pytask_execute_task_setup
14
14
from tests .conftest import TEST_RESOURCES
15
15
from tests .conftest import needs_latexmk
16
16
from tests .conftest import skip_on_github_actions_with_win
17
17
18
18
19
- @pytest .mark .unit ()
19
+ @pytest .mark .unit
20
20
def test_pytask_execute_task_setup (monkeypatch ):
21
21
"""Make sure that the task setup raises errors."""
22
22
# Act like latexmk is installed since we do not test this.
@@ -33,7 +33,7 @@ def test_pytask_execute_task_setup(monkeypatch):
33
33
34
34
@needs_latexmk
35
35
@skip_on_github_actions_with_win
36
- @pytest .mark .end_to_end ()
36
+ @pytest .mark .end_to_end
37
37
def test_compile_latex_document (runner , tmp_path ):
38
38
"""Test simple compilation."""
39
39
task_source = """
@@ -59,7 +59,7 @@ def task_compile_document():
59
59
60
60
@needs_latexmk
61
61
@skip_on_github_actions_with_win
62
- @pytest .mark .end_to_end ()
62
+ @pytest .mark .end_to_end
63
63
def test_compile_latex_document_w_relative (runner , tmp_path ):
64
64
"""Test simple compilation."""
65
65
task_source = f"""
@@ -91,7 +91,7 @@ def task_compile_document():
91
91
92
92
@needs_latexmk
93
93
@skip_on_github_actions_with_win
94
- @pytest .mark .end_to_end ()
94
+ @pytest .mark .end_to_end
95
95
def test_compile_latex_document_to_different_name (runner , tmp_path ):
96
96
"""Compile a LaTeX document where source and output name differ."""
97
97
task_source = """
@@ -118,7 +118,7 @@ def task_compile_document():
118
118
119
119
@needs_latexmk
120
120
@skip_on_github_actions_with_win
121
- @pytest .mark .end_to_end ()
121
+ @pytest .mark .end_to_end
122
122
def test_compile_w_bibliography (runner , tmp_path ):
123
123
"""Compile a LaTeX document with bibliography."""
124
124
task_source = """
@@ -158,7 +158,7 @@ def task_compile_document():
158
158
159
159
@needs_latexmk
160
160
@skip_on_github_actions_with_win
161
- @pytest .mark .end_to_end ()
161
+ @pytest .mark .end_to_end
162
162
def test_raise_error_if_latexmk_is_not_found (tmp_path , monkeypatch ):
163
163
task_source = """
164
164
from pytask import mark
@@ -192,7 +192,7 @@ def task_compile_document():
192
192
193
193
@needs_latexmk
194
194
@skip_on_github_actions_with_win
195
- @pytest .mark .end_to_end ()
195
+ @pytest .mark .end_to_end
196
196
def test_compile_latex_document_w_xelatex (runner , tmp_path ):
197
197
task_source = """
198
198
from pytask import mark
@@ -227,7 +227,7 @@ def task_compile_document():
227
227
228
228
@needs_latexmk
229
229
@skip_on_github_actions_with_win
230
- @pytest .mark .end_to_end ()
230
+ @pytest .mark .end_to_end
231
231
def test_compile_latex_document_w_two_dependencies (runner , tmp_path ):
232
232
task_source = """
233
233
from pytask import mark
@@ -255,7 +255,7 @@ def task_compile_document(path: Path = Path("in.txt")):
255
255
256
256
@needs_latexmk
257
257
@skip_on_github_actions_with_win
258
- @pytest .mark .end_to_end ()
258
+ @pytest .mark .end_to_end
259
259
def test_fail_because_script_is_not_latex (tmp_path ):
260
260
task_source = """
261
261
from pytask import mark
@@ -283,7 +283,7 @@ def task_compile_document(path: Path = Path("in.txt")):
283
283
284
284
@needs_latexmk
285
285
@skip_on_github_actions_with_win
286
- @pytest .mark .end_to_end ()
286
+ @pytest .mark .end_to_end
287
287
def test_compile_document_to_out_if_document_has_relative_resources (tmp_path ):
288
288
"""Test that motivates the ``"--cd"`` flag.
289
289
@@ -326,7 +326,7 @@ def task_compile_document(path: Path = Path("resources/content.tex")):
326
326
327
327
@needs_latexmk
328
328
@skip_on_github_actions_with_win
329
- @pytest .mark .end_to_end ()
329
+ @pytest .mark .end_to_end
330
330
def test_compile_document_w_wrong_flag (tmp_path ):
331
331
"""Test that wrong flags raise errors."""
332
332
tmp_path .joinpath ("sub" ).mkdir (parents = True )
@@ -361,7 +361,7 @@ def task_compile_document():
361
361
362
362
363
363
@needs_latexmk
364
- @pytest .mark .end_to_end ()
364
+ @pytest .mark .end_to_end
365
365
def test_compile_document_w_image (runner , tmp_path ):
366
366
task_source = f"""
367
367
from pytask import Product
@@ -397,7 +397,7 @@ def task_compile_document():
397
397
398
398
@needs_latexmk
399
399
@skip_on_github_actions_with_win
400
- @pytest .mark .end_to_end ()
400
+ @pytest .mark .end_to_end
401
401
def test_compile_latex_document_w_multiple_marks (runner , tmp_path ):
402
402
"""Test simple compilation."""
403
403
task_source = """
@@ -425,7 +425,7 @@ def task_compile_document():
425
425
426
426
@needs_latexmk
427
427
@skip_on_github_actions_with_win
428
- @pytest .mark .end_to_end ()
428
+ @pytest .mark .end_to_end
429
429
def test_compile_latex_document_with_wrong_extension (runner , tmp_path ):
430
430
"""Test simple compilation."""
431
431
task_source = """
@@ -452,7 +452,7 @@ def task_compile_document():
452
452
453
453
@needs_latexmk
454
454
@skip_on_github_actions_with_win
455
- @pytest .mark .end_to_end ()
455
+ @pytest .mark .end_to_end
456
456
def test_compile_w_bibliography_and_keep_bbl (runner , tmp_path ):
457
457
"""Compile a LaTeX document with bibliography."""
458
458
task_source = """
@@ -496,7 +496,7 @@ def task_compile_document(
496
496
497
497
@needs_latexmk
498
498
@skip_on_github_actions_with_win
499
- @pytest .mark .end_to_end ()
499
+ @pytest .mark .end_to_end
500
500
@pytest .mark .parametrize (
501
501
("step" , "message" ),
502
502
[
@@ -536,7 +536,7 @@ def task_compile_document():
536
536
537
537
@needs_latexmk
538
538
@skip_on_github_actions_with_win
539
- @pytest .mark .end_to_end ()
539
+ @pytest .mark .end_to_end
540
540
def test_compile_latex_document_with_task_decorator (runner , tmp_path ):
541
541
"""Test simple compilation."""
542
542
task_source = """
@@ -563,7 +563,7 @@ def compile_document():
563
563
564
564
@needs_latexmk
565
565
@skip_on_github_actions_with_win
566
- @pytest .mark .end_to_end ()
566
+ @pytest .mark .end_to_end
567
567
def test_use_task_without_path (tmp_path ):
568
568
task_source = """
569
569
import pytask
@@ -591,7 +591,7 @@ def test_use_task_without_path(tmp_path):
591
591
592
592
@needs_latexmk
593
593
@skip_on_github_actions_with_win
594
- @pytest .mark .end_to_end ()
594
+ @pytest .mark .end_to_end
595
595
def test_collect_latex_document_with_product_from_another_task (runner , tmp_path ):
596
596
"""Test simple compilation."""
597
597
task_source = """
0 commit comments