4
4
import textwrap
5
5
6
6
import pytest
7
+
7
8
from latex_dependency_scanner .compile import compile_pdf
8
9
from latex_dependency_scanner .scanner import COMMON_GRAPHICS_EXTENSIONS
9
10
from latex_dependency_scanner .scanner import scan
10
-
11
11
from tests .conftest import TEST_RESOURCES
12
12
from tests .conftest import needs_latexmk
13
13
14
14
15
15
@needs_latexmk
16
- @pytest .mark .end_to_end ()
16
+ @pytest .mark .end_to_end
17
17
def test_document_without_inclusions (tmp_path ):
18
18
source = r"""
19
19
\documentclass{article}
@@ -31,7 +31,7 @@ def test_document_without_inclusions(tmp_path):
31
31
32
32
33
33
@needs_latexmk
34
- @pytest .mark .end_to_end ()
34
+ @pytest .mark .end_to_end
35
35
@pytest .mark .parametrize ("directive" , ["include" , "input" ])
36
36
def test_input_or_include (tmp_path , directive ):
37
37
source = f"""
@@ -61,7 +61,7 @@ def test_input_or_include(tmp_path, directive):
61
61
]
62
62
63
63
64
- @pytest .mark .end_to_end ()
64
+ @pytest .mark .end_to_end
65
65
@pytest .mark .parametrize ("directive" , ["include" , "input" ])
66
66
def test_input_or_include_without_extension_and_file (tmp_path , directive ):
67
67
source = f"""
@@ -83,7 +83,7 @@ def test_input_or_include_without_extension_and_file(tmp_path, directive):
83
83
84
84
85
85
@needs_latexmk
86
- @pytest .mark .end_to_end ()
86
+ @pytest .mark .end_to_end
87
87
@pytest .mark .parametrize ("image_ext" , COMMON_GRAPHICS_EXTENSIONS )
88
88
@pytest .mark .parametrize ("has_extension" , [True , False ])
89
89
@pytest .mark .parametrize ("file_exists" , [True , False ])
@@ -108,7 +108,7 @@ def test_includegraphics(tmp_path, image_ext, has_extension, file_exists):
108
108
\\ documentclass{{article}}
109
109
\\ usepackage{{graphicx}}
110
110
\\ begin{{document}}
111
- \\ includegraphics{{image{ image_ext if has_extension else '' } }}
111
+ \\ includegraphics{{image{ image_ext if has_extension else "" } }}
112
112
\\ end{{document}}
113
113
"""
114
114
tmp_path .joinpath ("document.tex" ).write_text (textwrap .dedent (source ))
@@ -138,7 +138,7 @@ def test_includegraphics(tmp_path, image_ext, has_extension, file_exists):
138
138
assert nodes == expected
139
139
140
140
141
- @pytest .mark .end_to_end ()
141
+ @pytest .mark .end_to_end
142
142
def test_includegraphics_with_beamer_overlay (tmp_path ):
143
143
source = r"""
144
144
\documentclass{beamer}
@@ -157,7 +157,7 @@ def test_includegraphics_with_beamer_overlay(tmp_path):
157
157
158
158
159
159
@needs_latexmk
160
- @pytest .mark .end_to_end ()
160
+ @pytest .mark .end_to_end
161
161
def test_import (tmp_path ):
162
162
source = """
163
163
\\ documentclass{article}
@@ -185,7 +185,7 @@ def test_import(tmp_path):
185
185
]
186
186
187
187
188
- @pytest .mark .end_to_end ()
188
+ @pytest .mark .end_to_end
189
189
def test_import_without_extension_and_file (tmp_path ):
190
190
source = """
191
191
\\ documentclass{article}
@@ -205,7 +205,7 @@ def test_import_without_extension_and_file(tmp_path):
205
205
206
206
207
207
@needs_latexmk
208
- @pytest .mark .end_to_end ()
208
+ @pytest .mark .end_to_end
209
209
def test_sub_import (tmp_path ):
210
210
source = """
211
211
\\ documentclass{article}
@@ -235,7 +235,7 @@ def test_sub_import(tmp_path):
235
235
]
236
236
237
237
238
- @pytest .mark .end_to_end ()
238
+ @pytest .mark .end_to_end
239
239
def test_sub_import_without_extension_and_file (tmp_path ):
240
240
source = """
241
241
\\ documentclass{article}
@@ -261,7 +261,7 @@ def test_sub_import_without_extension_and_file(tmp_path):
261
261
262
262
263
263
@needs_latexmk
264
- @pytest .mark .end_to_end ()
264
+ @pytest .mark .end_to_end
265
265
def test_mixed_import_and_subimport (tmp_path ):
266
266
"""Test document with mixed import and subimport directives.
267
267
@@ -314,7 +314,7 @@ def test_mixed_import_and_subimport(tmp_path):
314
314
315
315
316
316
@needs_latexmk
317
- @pytest .mark .end_to_end ()
317
+ @pytest .mark .end_to_end
318
318
def test_natbib_bibliography (tmp_path ):
319
319
source = """
320
320
\\ documentclass{article}
@@ -335,7 +335,7 @@ def test_natbib_bibliography(tmp_path):
335
335
assert nodes == [tmp_path / "document.tex" , tmp_path / "bibliography.bib" ]
336
336
337
337
338
- @pytest .mark .end_to_end ()
338
+ @pytest .mark .end_to_end
339
339
def test_natbib_bibliography_without_extension_and_file (tmp_path ):
340
340
source = """
341
341
\\ documentclass{article}
@@ -354,7 +354,7 @@ def test_natbib_bibliography_without_extension_and_file(tmp_path):
354
354
355
355
356
356
@needs_latexmk
357
- @pytest .mark .end_to_end ()
357
+ @pytest .mark .end_to_end
358
358
def test_biblatex_bibliography (tmp_path ):
359
359
"""Test document with biblatex bibliography."""
360
360
source = """
@@ -376,7 +376,7 @@ def test_biblatex_bibliography(tmp_path):
376
376
assert nodes == [tmp_path / "document.tex" , tmp_path / "bibliography.bib" ]
377
377
378
378
379
- @pytest .mark .end_to_end ()
379
+ @pytest .mark .end_to_end
380
380
def test_biblatex_bibliography_without_extension_and_file (tmp_path ):
381
381
"""Test document without biblatex bibliography file and extension."""
382
382
source = """
0 commit comments