1
0
Fork 0
forked from josch/img2pdf

rename test.py -> src/img2pdf_test.py

This commit is contained in:
Johannes 'josch' Schauer 2020-08-03 12:34:02 +02:00
parent 5b7f93bb9a
commit 66fd7cc765
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -4490,11 +4490,11 @@ def test_layout(layout_test_cases):
@pytest.fixture(
scope="session",
params=os.listdir(os.path.join(os.path.dirname(__file__), "src", "tests", "input")),
params=os.listdir(os.path.join(os.path.dirname(__file__), "tests", "input")),
)
def general_input(request):
assert os.path.isfile(
os.path.join(os.path.dirname(__file__), "src", "tests", "input", request.param)
os.path.join(os.path.dirname(__file__), "tests", "input", request.param)
)
return request.param
@ -4502,10 +4502,10 @@ def general_input(request):
@pytest.mark.parametrize("engine", ["internal", "pikepdf", "pdfrw"])
def test_general(general_input, engine):
inputf = os.path.join(
os.path.dirname(__file__), "src", "tests", "input", general_input
os.path.dirname(__file__), "tests", "input", general_input
)
outputf = os.path.join(
os.path.dirname(__file__), "src", "tests", "output", general_input + ".pdf"
os.path.dirname(__file__), "tests", "output", general_input + ".pdf"
)
assert os.path.isfile(outputf)
f = inputf