Skip to content

Commit

Permalink
add additional test
Browse files Browse the repository at this point in the history
  • Loading branch information
felixdittrich92 committed Oct 11, 2024
1 parent e9d53ba commit 9a6e02d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/common/test_utils_reconstitution.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def test_synthesize_page():

# Test with polygons
pages_poly = pages[0].export()
pages_poly["blocks"][0]["lines"][1]["geometry"] = [(0, 0), (0, 1), (1, 1), (1, 0)]
pages_poly["blocks"][0]["lines"][0]["geometry"] = [(0, 0), (0, 1), (1, 1), (1, 0)]
render_poly = reconstitution.synthesize_page(pages_poly, draw_proba=True)
assert isinstance(render_poly, np.ndarray)
assert render_poly.shape == (*pages[0].dimensions, 3)

0 comments on commit 9a6e02d

Please sign in to comment.