diff --git a/test/unit_tests/image_stitcher_test.py b/test/unit_tests/image_stitcher_test.py index 3fc862e..968b20c 100644 --- a/test/unit_tests/image_stitcher_test.py +++ b/test/unit_tests/image_stitcher_test.py @@ -10,6 +10,10 @@ from test.conftest import get_base_position_metadata, add_image, random_single_c from test.utils.stitching import BoxSplitter +# def test_image_stitcher(patches_metadata): +# assert Stitcher().stitch(patches) + + @pytest.mark.parametrize("width", [160]) @pytest.mark.parametrize("height", [90]) @pytest.mark.parametrize("page_width", [int(160 * 1.1)]) @@ -31,8 +35,13 @@ def patch_image_metadata_pairs(patches_metadata): @pytest.fixture -def patches_metadata(width, height, page_width, page_height): +def base_patch_metadata(width, height, page_width, page_height): metadata = get_base_position_metadata(width, height, page_width, page_height) metadata = merge(metadata, {Info.X1: 0, Info.Y1: 0, Info.X2: width, Info.Y2: height}) - patches_metadata = BoxSplitter().split_box(metadata) + return metadata + + +@pytest.fixture +def patches_metadata(base_patch_metadata): + patches_metadata = BoxSplitter().split_box(base_patch_metadata) return patches_metadata