Skip to content

Commit

Permalink
cleanup tests
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-ht committed Dec 4, 2024
1 parent d52f3aa commit 253776c
Show file tree
Hide file tree
Showing 38 changed files with 1 addition and 9 deletions.
Binary file removed test/data/cairo_1.18.0/test_attribution.png
Binary file not shown.
Binary file removed test/data/cairo_1.18.0/test_symbol_layer.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed test/data/cairo_1.18.0/test_text_anchor_bottom.png
Binary file not shown.
Binary file removed test/data/cairo_1.18.0/test_text_anchor_center.png
Binary file not shown.
Binary file removed test/data/cairo_1.18.0/test_text_anchor_left.png
Binary file not shown.
Binary file removed test/data/cairo_1.18.0/test_text_anchor_right.png
Binary file not shown.
Binary file removed test/data/cairo_1.18.0/test_text_anchor_top-left.png
Binary file not shown.
Binary file not shown.
Binary file removed test/data/cairo_1.18.0/test_text_anchor_top.png
Binary file not shown.
Binary file removed test/data/cairo_1.18.2/test_background_layer.png
Binary file not shown.
Binary file removed test/data/cairo_1.18.2/test_circle_layer.png
Binary file not shown.
Binary file removed test/data/cairo_1.18.2/test_fill_layer.png
Binary file not shown.
Binary file removed test/data/cairo_1.18.2/test_line_caps.png
Binary file not shown.
Binary file removed test/data/cairo_1.18.2/test_line_joins.png
Binary file not shown.
Binary file removed test/data/cairo_1.18.2/test_line_layer.png
Binary file not shown.
Binary file removed test/data/cairo_1.18.2/test_tiled_raster_layer.png
Binary file not shown.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
2 changes: 0 additions & 2 deletions test/test_symbol_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,3 @@ def test_text_alignment(tmp_path):
map.add_layer(bg)
map.add_layer(point)
map.add_layer(layer)

assert False
8 changes: 1 addition & 7 deletions test/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ def assert_render_equality(
):
map = mapsy.Map()
yield map
cairo_version = cairo.cairo_version_string()
print(f"cairo version: {cairo_version}")

input_path = path.join("test", "data", "cairo_1.18.2", filename)
output_path = input_path if create_input else path.join(tmp_path, filename)
Expand All @@ -30,8 +28,4 @@ def assert_render_equality(
assert path.exists(output_path)
with open(output_path, "rb") as f:
with open(input_path, "rb") as f_ref:
f_data = f.read()
f_ref_data = f_ref.read()
if f_data != f_ref_data:
print(f"image with issue: {base64.b64encode(f_data)}")
assert f_data == f_ref_data
assert f.read() == f_ref.read()

0 comments on commit 253776c

Please sign in to comment.