test param adjustment
This commit is contained in:
parent
37ee086b5d
commit
4c46be4abc
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user