Fix: run pre-commit hooks
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import os
|
||||
|
||||
from pathlib import Path
|
||||
from bopytex.worker.compile import latexmk
|
||||
|
||||
import pytest
|
||||
|
||||
from bopytex.worker.compile import latexmk
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def tex_path(tmp_path):
|
||||
@@ -14,7 +15,7 @@ def tex_path(tmp_path):
|
||||
\\documentclass{article}
|
||||
|
||||
\\begin{document}
|
||||
First document. This is a simple example, with no
|
||||
First document. This is a simple example, with no
|
||||
extra parameters or packages included.
|
||||
\\end{document}
|
||||
"""
|
||||
@@ -23,7 +24,7 @@ extra parameters or packages included.
|
||||
|
||||
|
||||
def test_latexmk(tex_path, tmp_path):
|
||||
#tmp_path = tex_path.parent
|
||||
# tmp_path = tex_path.parent
|
||||
os.chdir(tmp_path)
|
||||
|
||||
texfile = str(tex_path.name)
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
import os
|
||||
|
||||
import jinja2
|
||||
from bopytex.worker.generate import generate
|
||||
import pytest
|
||||
|
||||
from bopytex.worker.generate import generate
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def jinja2_env(tmp_path):
|
||||
@@ -31,9 +33,9 @@ def test_generate(template_path, jinja2_env):
|
||||
"options": {
|
||||
"direct_access": {"a": 2},
|
||||
"jinja2": {"environment": jinja2_env},
|
||||
},
|
||||
"subject": {},
|
||||
},
|
||||
"subject": {},
|
||||
},
|
||||
deps=[template],
|
||||
output=output,
|
||||
)
|
||||
@@ -70,10 +72,10 @@ def test_generate_with_random(template_path_with_random, jinja2_env):
|
||||
"jinja2": {"environment": jinja2_env},
|
||||
"direct_access": {
|
||||
"random": random,
|
||||
}
|
||||
},
|
||||
"subject":{},
|
||||
},
|
||||
"subject": {},
|
||||
},
|
||||
deps=[template],
|
||||
output=output,
|
||||
)
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
import os
|
||||
|
||||
import shutil
|
||||
from pathlib import Path
|
||||
from bopytex.worker.join_pdf import pdfjam
|
||||
|
||||
import pytest
|
||||
|
||||
from bopytex.worker.join_pdf import pdfjam
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def multiple_pdf(tmp_path, request):
|
||||
|
||||
Reference in New Issue
Block a user