From 66fd7cc765c2525387faac4d7de64c1c4223c367 Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Mon, 3 Aug 2020 12:34:02 +0200 Subject: [PATCH] rename test.py -> src/img2pdf_test.py --- test.py => src/img2pdf_test.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename test.py => src/img2pdf_test.py (99%) diff --git a/test.py b/src/img2pdf_test.py similarity index 99% rename from test.py rename to src/img2pdf_test.py index a78d439..f89c5a3 100644 --- a/test.py +++ b/src/img2pdf_test.py @@ -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