test param adjustment

This commit is contained in:
Matthias Bisping 2022-04-05 18:09:43 +02:00
parent 37ee086b5d
commit 4c46be4abc

View File

@ -17,10 +17,10 @@ def test_image_stitcher(partial_image_metadata_pairs):
pass
@pytest.mark.parametrize("width", [100])
@pytest.mark.parametrize("height", [300])
@pytest.mark.parametrize("page_width", [500])
@pytest.mark.parametrize("page_height", [500])
@pytest.mark.parametrize("width", [160])
@pytest.mark.parametrize("height", [90])
@pytest.mark.parametrize("page_width", [int(160 * 1.1)])
@pytest.mark.parametrize("page_height", [int(90 * 1.1)])
def test_partial_image_metadata_pairs(patches_metadata, page_width, page_height):
pdf = fpdf.FPDF(unit="pt", format=(page_width, page_height))
@ -32,7 +32,7 @@ def test_partial_image_metadata_pairs(patches_metadata, page_width, page_height)
pdf.output("/tmp/bla.pdf")
def split_box(box, max_step=5):
def split_box(box, max_step=3):
def split_recursively(box, step):
def split_horizontal():
return split(Info.WIDTH, Info.X1, Info.X2)